APKBUILD 2.09 KB
Newer Older
Ariadne Conill's avatar
Ariadne Conill committed
1 2 3
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libbsd
4
pkgver=0.6.0
Timo Teräs's avatar
Timo Teräs committed
5
pkgrel=1
Ariadne Conill's avatar
Ariadne Conill committed
6 7
pkgdesc="commonly-used BSD functions not implemented by all libcs"
url="http://libbsd.freedesktop.org/"
8
arch="x86 x86_64"
Ariadne Conill's avatar
Ariadne Conill committed
9 10 11
license="BSD"
depends=""
depends_dev=""
12
makedepends="$depends_dev autoconf automake libtool"
Ariadne Conill's avatar
Ariadne Conill committed
13 14
install=""
subpackages="$pkgname-dev $pkgname-doc"
15
source="http://libbsd.freedesktop.org/releases/libbsd-$pkgver.tar.xz
Timo Teräs's avatar
Timo Teräs committed
16 17 18
	Revert_Force_setproctitle_into_.init_array_section.patch
	musl-fix-headers.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 50
		--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
	rm -f "$pkgdir"/usr/lib/*.la
}

51
md5sums="f6c75f0a9818e323a589bcbd560a0eb4  libbsd-0.6.0.tar.xz
Timo Teräs's avatar
Timo Teräs committed
52 53
628a86066f8a1222c7ffee5aa3d488ef  Revert_Force_setproctitle_into_.init_array_section.patch
712fca9c718f8b0f4d664c214072d6b3  musl-fix-headers.patch"
54
sha256sums="9e8f34ffa9c8579c87965a55a82d8ac37a1dc64858f717b7c49452ade277cc62  libbsd-0.6.0.tar.xz
Timo Teräs's avatar
Timo Teräs committed
55 56
a4497defcc14d04e407130931ed89c6b9e5e79c684884291cc080c6e90c82777  Revert_Force_setproctitle_into_.init_array_section.patch
3082d5f47c6d895dc3546d517ba7d541602872f00d5b39852a0b28b3d74ce954  musl-fix-headers.patch"
57
sha512sums="d750ead28e76938ab8d9c5575c1c87bcf275754f9f82b19d647f522bfaf07e5a85dc47ed5faae093994e5456be806fdebb55eeeed74efff3c950dfb6142e2b5c  libbsd-0.6.0.tar.xz
Timo Teräs's avatar
Timo Teräs committed
58 59
52d3e69a2589dc299bcc5ca99bcf595d054be4c8b6b2ce4101d7657a54fecc4bc843b4439f0c9b582266559288220b342f926e700e7ae7e91bf29f0ae30d707f  Revert_Force_setproctitle_into_.init_array_section.patch
87a4337108776cf8ff05be5938b3c8a548a4dd5625ae8e4afbab54c4c06af287188a81213633540a82c07e90b028b616f30934b02e8ab7485efa0ae0afdf20ee  musl-fix-headers.patch"