diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-30 11:49:05 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-07-30 11:49:05 +0000 |
commit | c212923f6229950a08dc95fcee417d69123b5ea8 (patch) | |
tree | 387fa3961c198d7f03ea712f1686f6e1832815b7 /main/libc-dev/APKBUILD | |
parent | 67118aa9e0d57ea5b5ea14d8d2045e24569e496e (diff) | |
download | aports-c212923f6229950a08dc95fcee417d69123b5ea8.tar.bz2 aports-c212923f6229950a08dc95fcee417d69123b5ea8.tar.xz |
main/libc-dev: renamed from libc
to avoid clash with the libc0.9.32's libc subpackage
Diffstat (limited to 'main/libc-dev/APKBUILD')
-rw-r--r-- | main/libc-dev/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/main/libc-dev/APKBUILD b/main/libc-dev/APKBUILD new file mode 100644 index 0000000000..3ee0e88f72 --- /dev/null +++ b/main/libc-dev/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: Natanael Copa <ncopa@alpinelinux.org> +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=libc-dev +pkgver=0.3 +pkgrel=0 +pkgdesc="Meta package to pull in correct libc" +url="http://alpinelinux.org" +arch="noarch" +license="GPL" +makedepends="" +depends= +subpackages="libc-utils:utils" +source="sys-queue.h + " + +_builddir="$srcdir"/$pkgname-$pkgver + +prepare() { + mkdir -p "$_builddir" + cd "$_builddir" +} + +build() { + return 0 +} + +package() { + mkdir -p "$pkgdir" + case "$CHOST" in + *-uclibc*) depends="uclibc-dev";; + *-gnu*) depends="eglibc-dev";; + *-musl*) + depends="musl-dev" + install -D "$srcdir"/sys-queue.h "$subpkgdir"/usr/include/sys/queue.h + ;; + esac +} + +utils() { + mkdir -p "$subpkgdir" + case "$CHOST" in + *-uclibc*) depends="uclibc-utils";; + *-gnu*) depends="eglibc-utils";; + *-musl*) depends="musl-utils" ;; + esac +} + +md5sums="555be8a6d1523a2272f4a04e4e936d5e sys-queue.h" +sha256sums="e4db36f500692efb12a7b97112e0f5c0985f13310a052d8e9f3a4f7648693711 sys-queue.h" +sha512sums="af87b810fbc4e7ed97b20412025ff5766e503fec163b27c81415dc0377b4f80f39548ebf8b6403e0dc5d35eddf8d08ba2a8dc549b3c8c1bf503c9da7c24b523b sys-queue.h" |