aboutsummaryrefslogtreecommitdiffstats
path: root/main/libc-dev/APKBUILD
blob: 2e5f34269d11ded0a5363ae6d5ec0c8565fe95a6 (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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libc-dev
pkgver=0.5
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"
source="sys-cdefs.h
	sys-queue.h
	"

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

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

build() {
	return 0
}

package() {
	mkdir -p "$pkgdir"
	case "$CLIBC" in
	musl)
		depends="$depends linux-headers"
		install -D "$srcdir"/sys-cdefs.h "$pkgdir"/usr/include/sys/cdefs.h
		install -D "$srcdir"/sys-queue.h "$pkgdir"/usr/include/sys/queue.h
		;;
	esac
}

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

	mkdir -p "$subpkgdir"
}

md5sums="13aa756878e3c6baa74a59e078514809  sys-cdefs.h
555be8a6d1523a2272f4a04e4e936d5e  sys-queue.h"
sha256sums="a83818007069c222d24d283a99348c2376f35bac3282d8142004c47d3dc5ecac  sys-cdefs.h
e4db36f500692efb12a7b97112e0f5c0985f13310a052d8e9f3a4f7648693711  sys-queue.h"
sha512sums="4e6ecdd3e7cf02cff3cab7931cbd4c06d7be54ea77bea8280154ba3f81d158445c9b7a8404fc3ed0595f11f85f270c276f59ecbf40e75d2b9cf0a5245b81823b  sys-cdefs.h
af87b810fbc4e7ed97b20412025ff5766e503fec163b27c81415dc0377b4f80f39548ebf8b6403e0dc5d35eddf8d08ba2a8dc549b3c8c1bf503c9da7c24b523b  sys-queue.h"