summaryrefslogtreecommitdiffstats
path: root/main/libc
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-01-18 09:08:04 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-01-18 09:09:05 +0000
commite4082d2b009e77637a1500344cf3cea6826456a3 (patch)
tree562243d65de5342339c55996642ea48582121624 /main/libc
parent7f9b379176ec2aba185b6e517217e2d48b5927d4 (diff)
downloadaports-e4082d2b009e77637a1500344cf3cea6826456a3.tar.bz2
aports-e4082d2b009e77637a1500344cf3cea6826456a3.tar.xz
main/libc: new aport
Meta package for picking correct libc packages
Diffstat (limited to 'main/libc')
-rw-r--r--main/libc/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/main/libc/APKBUILD b/main/libc/APKBUILD
new file mode 100644
index 000000000..440295244
--- /dev/null
+++ b/main/libc/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=libc
+pkgver=0.1
+pkgrel=0
+pkgdesc="Meta package to pull in correct libc"
+url="http://alpinelinux.org"
+arch="noarch"
+license="GPL"
+makedepends=""
+depends=
+subpackages="$pkgname-dev $pkgname-utils"
+source=""
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ mkdir -p "$_builddir"
+ cd "$_builddir"
+}
+
+build() {
+ return 0
+}
+
+package() {
+ mkdir -p "$pkgdir"
+}
+
+dev() {
+ mkdir -p "$subpkgdir"
+ case "$CHOST" in
+ *-uclibc) depends="uclibc-dev";;
+ *-gnu) depends="eglibc-dev";;
+ esac
+}
+
+utils() {
+ mkdir -p "$subpkgdir"
+ case "$CHOST" in
+ *-uclibc) depends="uclibc-utils";;
+ *-gnu) depends="eglibc-utils";;
+ esac
+}
+
+md5sums=""