Commit e3725c0a authored by Timo Teräs's avatar Timo Teräs
Browse files

main/libc-dev: split bsd compatibility headers to separate subpkg

also refresh sys/queue.h and add sys/tree.h
parent e6d8679e
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libc-dev
pkgver=0.6
pkgver=0.7
pkgrel=0
pkgdesc="Meta package to pull in correct libc"
url="http://alpinelinux.org"
......@@ -11,9 +11,10 @@ makedepends_build=" "
makedepends_host=" "
makedepends="$makedepends_build $makedepends_host"
depends="$CLIBC-dev"
subpackages="libc-utils:utils"
subpackages="libc-utils:utils bsd-compat-headers:bsdcompat"
source="sys-cdefs.h
sys-queue.h
sys-tree.h
"
_builddir="$srcdir"/$pkgname-$pkgver
......@@ -29,13 +30,6 @@ build() {
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() {
......@@ -44,9 +38,26 @@ 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
555be8a6d1523a2272f4a04e4e936d5e sys-queue.h"
c2784afaed83839546ba733e8a0435c7 sys-queue.h
8d0bcd3f4b10dfc5c74d5bb4c0d6722b sys-tree.h"
sha256sums="30bb6d7e0e0b61fcd95d830c376c829a614bce4683c1b97e06c201ec2c6e839a sys-cdefs.h
e4db36f500692efb12a7b97112e0f5c0985f13310a052d8e9f3a4f7648693711 sys-queue.h"
3659cd137c320991a78413dd370a92fd18e0a8bc36d017d554f08677a37d7d5a sys-queue.h
e1e498a79bf160a5766fa560f2b07b206fe89fe21a62600c77d72e00a6992f92 sys-tree.h"
sha512sums="8c3fddd73b696a38e633953715c79c47703739be27ee085fc6c960a57b6746ca05bf6406f7e6126cc1a13204254fd5830afb566624e1f298f4d6b58216013c28 sys-cdefs.h
af87b810fbc4e7ed97b20412025ff5766e503fec163b27c81415dc0377b4f80f39548ebf8b6403e0dc5d35eddf8d08ba2a8dc549b3c8c1bf503c9da7c24b523b sys-queue.h"
19cec4d39310285eb49ad1beae86884080e0152f9477757513050211b31f95ee7283a64ae95939683df09231cfb021ace816b26981ad05f4fff0a39519f935fe sys-queue.h
07cb70f2f0ddb31e23dd913c6f561fc9885667c5803fdf3a559676c99d08834b4104589bacb5d17b4a0b379c68c81a1cf3173832b3da33a7b936fa7b93706844 sys-tree.h"
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment