APKBUILD 1.69 KB
Newer Older
1
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
Ariadne Conill's avatar
Ariadne Conill committed
2 3 4
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libbsd
5
pkgver=0.8.0
6
pkgrel=0
Ariadne Conill's avatar
Ariadne Conill committed
7 8
pkgdesc="commonly-used BSD functions not implemented by all libcs"
url="http://libbsd.freedesktop.org/"
9
arch="x86 x86_64"
Ariadne Conill's avatar
Ariadne Conill committed
10 11 12
license="BSD"
depends=""
depends_dev=""
13 14
makedepends="$depends_dev autoconf automake libtool bsd-compat-headers
	linux-headers"
Ariadne Conill's avatar
Ariadne Conill committed
15 16
install=""
subpackages="$pkgname-dev $pkgname-doc"
17 18
source="http://libbsd.freedesktop.org/releases/$pkgname-$pkgver.tar.xz
	musl-fixes.patch"
Ariadne Conill's avatar
Ariadne Conill committed
19 20 21 22

_builddir="$srcdir"/libbsd-$pkgver
prepare() {
	cd "$_builddir"
Timo Teräs's avatar
Timo Teräs committed
23 24 25 26 27
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
28
	autoreconf -fi || return 1
Ariadne Conill's avatar
Ariadne Conill committed
29 30 31 32
}

build() {
	cd "$_builddir"
33 34 35 36
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Ariadne Conill's avatar
Ariadne Conill committed
37 38 39 40 41 42 43 44 45 46 47 48 49
		--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
}

50
md5sums="262bdd1aa3bee6066a8c9cb49bb6c584  libbsd-0.8.0.tar.xz
51
4449c9cd2447a595d283441c75256fbd  musl-fixes.patch"
52
sha256sums="fbb732084bd960e4c78b688aac875be98e290cc6fe462b2ff8ee946a6473e38c  libbsd-0.8.0.tar.xz
53
94bc4853e2acae9d630f01aaae2992d166dd92154446112f1e80bb186c0e6be8  musl-fixes.patch"
54
sha512sums="a2235cde4d24ce55b0ad16eb12b421c3b35ea5ca35cd8dbf25dd9a01f6a12c737b877c8e1dd344d4cfdfbbbc872d17424e3b9944993395d752fc0b80ead7d06a  libbsd-0.8.0.tar.xz
55
a60b23c87dca30db2414f7f7184503cd080e2ff490f28d8b5a4c55ff48e282e80e636c0e72096753d4cf8b32f852004aa3b24eae7b6ef7e62ef85169f052335a  musl-fixes.patch"