Created
August 10, 2020 03:16
-
-
Save py7hon/0c04495b0471e820e64b59b6f25ef1d1 to your computer and use it in GitHub Desktop.
Arch Musl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Sergej Pupykin <[email protected]> | |
# Maintainer: Eli Schwartz <[email protected]> | |
# Maintainer: Iqbal Rifai <[email protected]> | |
# Contributor: TJ Vanderpoel <tj@rubyists> | |
pkgname=musl | |
pkgver=1.2.1 | |
pkgrel=1 | |
pkgdesc='Lightweight implementation of C standard library' | |
arch=('x86_64') | |
url='https://www.musl-libc.org/' | |
license=('MIT') | |
options=('staticlibs' '!buildflags') | |
validpgpkeys=('836489290BB6B70F99FFDA0556BCDB593020450F') | |
source=(https://www.musl-libc.org/releases/musl-$pkgver.tar.gz{,.asc}) | |
sha256sums=('68af6e18539f646f9c41a3a2bb25be4a5cfa5a8f65f0bb647fd2bbfdf877e84b' | |
'SKIP') | |
build() { | |
cd $pkgname-$pkgver | |
./configure --prefix=/usr/lib/musl \ | |
--exec-prefix=/usr \ | |
--enable-wrapper=all | |
make | |
} | |
package() { | |
cd $pkgname-$pkgver | |
make DESTDIR="$pkgdir" install | |
# configure syslibdir with /lib for PT_INTERP compat, but install to /usr/lib | |
mv "$pkgdir"/lib/ld-musl*.so* "$pkgdir"/usr/lib/ | |
rmdir "$pkgdir"/lib | |
install -Dm0644 README "$pkgdir"/usr/share/doc/musl/README | |
install -Dm0644 COPYRIGHT "$pkgdir"/usr/share/licenses/musl/COPYRIGHT | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment