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
|
2021-01-12 11:06:46 +00:00
|
|
|
./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 \
|
2021-01-12 11:06:46 +00:00
|
|
|
--enable-wrapper=no
|
|
|
|
gmake
|
2020-12-27 16:34:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-01-12 11:06:46 +00:00
|
|
|
gmake install DESTDIR=$pkgdir
|
2021-01-28 12:37:51 +00:00
|
|
|
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
|
2021-01-12 11:06:46 +00:00
|
|
|
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
|
|
|
|
}
|