2021-01-17 19:15:45 +00:00
|
|
|
pkgver=1.2.2
|
2020-12-27 16:34:08 +00:00
|
|
|
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
|
2021-01-12 11:06:46 +00:00
|
|
|
./configure \
|
2021-01-17 19:15:45 +00:00
|
|
|
--prefix=/usr \
|
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-01-17 19:15:45 +00:00
|
|
|
ln -sr $pkgdir/lib/ld-musl*.so? $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
|
|
|
|
}
|