2023-12-08 02:05:38 +00:00
|
|
|
# Maintainer: Daryl Ronningen <relms@relms.dev>
|
2023-12-05 04:47:04 +00:00
|
|
|
|
|
|
|
pkgname=musl
|
|
|
|
pkgver=1.2.4
|
|
|
|
pkgrel=1
|
2023-12-08 02:05:38 +00:00
|
|
|
pkgdesc="Lightweight implementation of C standard library"
|
|
|
|
arch=("x86_64")
|
|
|
|
url="https://musl.libc.org/"
|
|
|
|
license=("MIT")
|
|
|
|
source=(
|
|
|
|
"https://musl.libc.org/releases/musl-$pkgver.tar.gz"
|
|
|
|
"add-typedefs-for-Elf64_Relr-and-Elf32_Relr.patch"
|
|
|
|
)
|
|
|
|
sha256sums=(
|
|
|
|
"7a35eae33d5372a7c0da1188de798726f68825513b7ae3ebe97aaaa52114f039"
|
|
|
|
"d5f639c6f38504805a07a426ccc4fbb0f657205047009143baf972f6687335f4"
|
|
|
|
)
|
2023-12-05 04:47:04 +00:00
|
|
|
|
|
|
|
prepare() {
|
2023-12-08 02:05:38 +00:00
|
|
|
cd $pkgname-$pkgver
|
2023-12-05 04:47:04 +00:00
|
|
|
|
2023-12-08 02:05:38 +00:00
|
|
|
patch -p1 <$srcdir/add-typedefs-for-Elf64_Relr-and-Elf32_Relr.patch
|
2023-12-05 04:47:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2023-12-08 02:05:38 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
./configure --prefix=/usr
|
|
|
|
make
|
2023-12-05 04:47:04 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-12-08 02:05:38 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
make DESTDIR="$pkgdir" install
|
2023-12-05 04:47:04 +00:00
|
|
|
|
2023-12-08 02:05:38 +00:00
|
|
|
mv $pkgdir/lib/* $pkgdir/usr/lib/
|
|
|
|
rm -rf $pkgdir/lib
|
|
|
|
mkdir $pkgdir/usr/bin
|
|
|
|
ln -s ../lib/ld-musl-x86_64.so.1 $pkgdir/usr/bin/ldd
|
2023-12-05 04:47:04 +00:00
|
|
|
|
2023-12-08 02:05:38 +00:00
|
|
|
install -Dm0644 README "$pkgdir"/usr/share/doc/musl/README
|
|
|
|
install -Dm0644 COPYRIGHT "$pkgdir"/usr/share/licenses/musl/COPYRIGHT
|
2023-12-05 04:47:04 +00:00
|
|
|
}
|