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=""
|
2021-09-11 08:24:20 +00:00
|
|
|
mkdeps="gmake"
|
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
|
2021-10-11 16:30:08 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cp ../../meson.build .
|
|
|
|
cp ../../glob.sh .
|
|
|
|
cp ../../globbits.sh .
|
|
|
|
cp ../../version_h.sh .
|
|
|
|
cp ../../crt.meson.build crt/meson.build
|
|
|
|
mkdir bits
|
|
|
|
cp ../../bits.meson.build bits/meson.build
|
|
|
|
mkdir build
|
2020-12-27 16:34:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-10-11 16:30:08 +00:00
|
|
|
cd build
|
|
|
|
meson .. -Dprefix=/usr
|
|
|
|
|
|
|
|
samu
|
2020-12-27 16:34:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-10-11 16:30:08 +00:00
|
|
|
cd build
|
|
|
|
DESTDIR=$pkgdir samu install
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
rm -rf $pkgdir/usr/include
|
|
|
|
|
2021-02-03 13:03:52 +00:00
|
|
|
install -d $pkgdir/usr/bin
|
2021-10-11 16:30:08 +00:00
|
|
|
install -d $pkgdir/lib
|
2021-07-31 09:37:47 +00:00
|
|
|
|
|
|
|
mv $pkgdir/usr/lib/libc.so $pkgdir/lib/ld-musl-$(uname -m).so.1
|
|
|
|
ln -sr $pkgdir/lib/ld-musl-$(uname -m).so.1 $pkgdir/usr/lib/libc.so
|
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-10-11 16:30:08 +00:00
|
|
|
cd build
|
|
|
|
DESTDIR=$pkgdir samu install
|
|
|
|
|
2021-01-17 19:15:45 +00:00
|
|
|
rm $pkgdir/usr/lib/*.so
|
2021-07-31 09:37:47 +00:00
|
|
|
rm -rf $pkgdir/lib
|
2020-12-27 16:34:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat COPYRIGHT
|
|
|
|
}
|