diff options
author | William Pitcock <nenolod@dereferenced.org> | 2013-06-08 16:34:51 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2013-06-08 16:34:51 -0500 |
commit | e3fecb62548ef9c124b850fe4b6e35692dd86d9b (patch) | |
tree | 7e0979ab6520fe1b670eb6c48a6b77f5070e9c46 | |
parent | 018d842877708d0943d3a640b64113d351cad352 (diff) | |
download | aports-e3fecb62548ef9c124b850fe4b6e35692dd86d9b.tar.bz2 aports-e3fecb62548ef9c124b850fe4b6e35692dd86d9b.tar.xz |
main/musl: new aport
-rw-r--r-- | main/musl/APKBUILD | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/main/musl/APKBUILD b/main/musl/APKBUILD new file mode 100644 index 0000000000..ab1a0b2ee4 --- /dev/null +++ b/main/musl/APKBUILD @@ -0,0 +1,54 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=musl +pkgver=0.9.10 +pkgrel=0 +pkgdesc="the musl c library (libc) implementation" +url="http://www.musl-libc.org/" +arch="x86 x86_64 arm" +license="MIT" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev musl-gcc:crosstool" +source="http://www.musl-libc.org/releases/musl-$pkgver.tar.gz" + +_builddir="$srcdir"/musl-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + LDFLAGS="-Wl,-soname,libc-musl-${CARCH}.so" \ + ./configure --prefix=/usr \ + --libdir=/lib \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --localstatedir=/var \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 + rm -f "$pkgdir"/usr/lib/*.la +} + +crosstool() { + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/musl-gcc "$subpkgdir"/usr/bin +} + +md5sums="8998be253b6f0880a1ce00d85dbae9c5 musl-0.9.10.tar.gz" +sha256sums="71fc00733a3ee45fab342870ccd84d33d079e64f2d6fdcfb8b463a769c3ff391 musl-0.9.10.tar.gz" +sha512sums="a31b4dc367672dd3056476b4e7a5c7affd81d33ead2427e043b94da8251167d93178af5ef43ad962354d18eb260435bb3968a3a8f2f684c89d0bc74a32304936 musl-0.9.10.tar.gz" |