aboutsummaryrefslogtreecommitdiffstats
path: root/main/libc-dev/APKBUILD
blob: f639589560fb5d8ef751beb86099a3faca2dc393 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libc-dev
pkgver=0.7.1
pkgrel=0
pkgdesc="Meta package to pull in correct libc"
url="http://alpinelinux.org"
arch="noarch"
license="BSD"
makedepends_build=" "
makedepends_host=" "
makedepends="$makedepends_build $makedepends_host"
depends="$CLIBC-dev"
subpackages="libc-utils:utils bsd-compat-headers:bsdcompat"
source="sys-cdefs.h
	sys-queue.h
	sys-tree.h
	"

_builddir="$srcdir"/$pkgname-$pkgver

prepare() {
	mkdir -p "$_builddir"
	cd "$_builddir"
}

build() {
	return 0
}

package() {
	mkdir -p "$pkgdir"
}

utils() {
	depends="$CLIBC-utils"

	mkdir -p "$subpkgdir"
}

bsdcompat() {
	pkgdesc="BSD compatibility headers (cdefs, queue, tree)"
	depends=""

	mkdir -p "$subpkgdir"
	case "$CLIBC" in
	musl)
		install -D "$srcdir"/sys-cdefs.h "$subpkgdir"/usr/include/sys/cdefs.h
		install -D "$srcdir"/sys-queue.h "$subpkgdir"/usr/include/sys/queue.h
		install -D "$srcdir"/sys-tree.h "$subpkgdir"/usr/include/sys/tree.h
		;;
	esac
}

md5sums="5b125c4b64aef6d89766f657709cf0e4  sys-cdefs.h
9a3f0035d89763e26ceee03235fd5d93  sys-queue.h
8d0bcd3f4b10dfc5c74d5bb4c0d6722b  sys-tree.h"
sha256sums="30bb6d7e0e0b61fcd95d830c376c829a614bce4683c1b97e06c201ec2c6e839a  sys-cdefs.h
c13407edd0e33be73cae72514cb234f8612e1c0e54401c9448daffd3a240158b  sys-queue.h
e1e498a79bf160a5766fa560f2b07b206fe89fe21a62600c77d72e00a6992f92  sys-tree.h"
sha512sums="8c3fddd73b696a38e633953715c79c47703739be27ee085fc6c960a57b6746ca05bf6406f7e6126cc1a13204254fd5830afb566624e1f298f4d6b58216013c28  sys-cdefs.h
2f0d5e6e4dc3350285cf17009265dddcbe12431c111868eea39bc8cb038ab7c1f2acacbb21735c4e9d4a1fd106a8fc0f8611ea33987d4faba37dde5ce6da0750  sys-queue.h
07cb70f2f0ddb31e23dd913c6f561fc9885667c5803fdf3a559676c99d08834b4104589bacb5d17b4a0b379c68c81a1cf3173832b3da33a7b936fa7b93706844  sys-tree.h"