iglunix/pkgs/musl/build.sh

40 lines
707 B
Bash
Raw Normal View History

2021-01-17 19:15:45 +00:00
pkgver=1.2.2
2020-12-27 16:34:08 +00:00
pkgname=musl
2021-01-31 11:09:14 +00:00
deps=""
2020-12-27 16:34:08 +00:00
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 \
2021-01-17 19:15:45 +00:00
--prefix=/usr \
2021-06-11 10:29:00 +00:00
--build=$(uname -m)-unknown-linux-musl \
--host=$(uname -m)-unknown-linux-musl \
--enable-wrapper=no
gmake
2020-12-27 16:34:08 +00:00
}
package() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
rm -r $pkgdir/usr/include
2021-02-03 13:03:52 +00:00
install -d $pkgdir/usr/bin
2021-06-11 10:29:00 +00:00
ln -sr $pkgdir/lib/ld-musl-$(uname -m).so.1 $pkgdir/usr/bin/ldd
2020-12-27 16:34:08 +00:00
}
package_dev() {
cd $pkgname-$pkgver
gmake install DESTDIR=$pkgdir
2021-01-17 19:15:45 +00:00
rm $pkgdir/usr/lib/*.so
2020-12-27 16:34:08 +00:00
}
license() {
cd $pkgname-$pkgver
cat COPYRIGHT
}