summaryrefslogtreecommitdiffstats
path: root/main/libc/APKBUILD
blob: 440295244ca6b43314da9620b64a576ec1fecc86 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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=""