aboutsummaryrefslogtreecommitdiffstats
path: root/main/libc-dev/APKBUILD
blob: 0aef1840d820b3fcd2807df1f08ab512fc491629 (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
pkgrel=0
pkgdesc="Meta package to pull in correct libc"
url="http://alpinelinux.org"
arch="noarch"
license="GPL"
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
c2784afaed83839546ba733e8a0435c7  sys-queue.h
8d0bcd3f4b10dfc5c74d5bb4c0d6722b  sys-tree.h"
sha256sums="30bb6d7e0e0b61fcd95d830c376c829a614bce4683c1b97e06c201ec2c6e839a  sys-cdefs.h
3659cd137c320991a78413dd370a92fd18e0a8bc36d017d554f08677a37d7d5a  sys-queue.h
e1e498a79bf160a5766fa560f2b07b206fe89fe21a62600c77d72e00a6992f92  sys-tree.h"
sha512sums="8c3fddd73b696a38e633953715c79c47703739be27ee085fc6c960a57b6746ca05bf6406f7e6126cc1a13204254fd5830afb566624e1f298f4d6b58216013c28  sys-cdefs.h
19cec4d39310285eb49ad1beae86884080e0152f9477757513050211b31f95ee7283a64ae95939683df09231cfb021ace816b26981ad05f4fff0a39519f935fe  sys-queue.h
07cb70f2f0ddb31e23dd913c6f561fc9885667c5803fdf3a559676c99d08834b4104589bacb5d17b4a0b379c68c81a1cf3173832b3da33a7b936fa7b93706844  sys-tree.h"