aboutsummaryrefslogtreecommitdiffstats
path: root/main/libbsd/APKBUILD
blob: f58a03f15461be766516016da5e13ef9acbad423 (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.1
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="f3daff0283af6e30f25d68be2deac4ef  libbsd-0.8.1.tar.xz
4449c9cd2447a595d283441c75256fbd  musl-fixes.patch"
sha256sums="adbc8781ad720bce939b689f38a9f0247732a36792147a7c28027c393c2af9b0  libbsd-0.8.1.tar.xz
94bc4853e2acae9d630f01aaae2992d166dd92154446112f1e80bb186c0e6be8  musl-fixes.patch"
sha512sums="8ae687cf6baf0364661d8452c0f2817ba9d7fc59fbf198aceda33d3b8575fd385e2915f145132b1a7fd43b18c0a7ba9306c98f0d98fc7e35412918df456364c6  libbsd-0.8.1.tar.xz
a60b23c87dca30db2414f7f7184503cd080e2ff490f28d8b5a4c55ff48e282e80e636c0e72096753d4cf8b32f852004aa3b24eae7b6ef7e62ef85169f052335a  musl-fixes.patch"