iglunix/pkgs/musl/build.sh
2020-12-27 16:34:08 +00:00

35 lines
562 B
Bash

pkgver=1.2.1
pkgname=musl
bad="gmake"
ext="dev"
fetch() {
curl "https://musl.libc.org/releases/$pkgname-$pkgver.tar.gz" -o $pkgname-$pkgver.tar.gz
tar -xf $pkgname-$pkgver.tar.gz
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/ --enable-wrapper=no
make
}
package() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm -r $pkgdir/include
rm $pkgdir/lib/*.a
rm $pkgdir/lib/*.o
}
package_dev() {
cd $pkgname-$pkgver
make install DESTDIR=$pkgdir
rm $pkgdir/lib/*.so
rm $pkgdir/lib/*.so.?
}
license() {
cd $pkgname-$pkgver
cat COPYRIGHT
}