aboutsummaryrefslogtreecommitdiffstats
path: root/main/libbsd/APKBUILD
blob: 70560be7e7bb27c65a04da6bb7ae68151dda19ec (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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libbsd
pkgver=0.8.0
pkgrel=0
pkgdesc="commonly-used BSD functions not implemented by all libcs"
url="http://libbsd.freedesktop.org/"
arch="x86 x86_64"
license="BSD"
depends=""
depends_dev=""
makedepends="$depends_dev autoconf automake libtool bsd-compat-headers
	linux-headers"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="http://libbsd.freedesktop.org/releases/$pkgname-$pkgver.tar.xz
	musl-fixes.patch"

_builddir="$srcdir"/libbsd-$pkgver
prepare() {
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
	autoreconf -fi || return 1
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="262bdd1aa3bee6066a8c9cb49bb6c584  libbsd-0.8.0.tar.xz
4449c9cd2447a595d283441c75256fbd  musl-fixes.patch"
sha256sums="fbb732084bd960e4c78b688aac875be98e290cc6fe462b2ff8ee946a6473e38c  libbsd-0.8.0.tar.xz
94bc4853e2acae9d630f01aaae2992d166dd92154446112f1e80bb186c0e6be8  musl-fixes.patch"
sha512sums="a2235cde4d24ce55b0ad16eb12b421c3b35ea5ca35cd8dbf25dd9a01f6a12c737b877c8e1dd344d4cfdfbbbc872d17424e3b9944993395d752fc0b80ead7d06a  libbsd-0.8.0.tar.xz
a60b23c87dca30db2414f7f7184503cd080e2ff490f28d8b5a4c55ff48e282e80e636c0e72096753d4cf8b32f852004aa3b24eae7b6ef7e62ef85169f052335a  musl-fixes.patch"