APKBUILD 1.59 KB
Newer Older
Sören Tempel's avatar
Sören Tempel committed
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.3
6
pkgrel=1
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="all"
Ariadne Conill's avatar
Ariadne Conill committed
10 11
license="BSD"
depends=""
12 13
depends_dev="bsd-compat-headers linux-headers"
makedepends="$depends_dev autoconf automake libtool"
Ariadne Conill's avatar
Ariadne Conill committed
14
subpackages="$pkgname-dev $pkgname-doc"
Sören Tempel's avatar
Sören Tempel committed
15 16
source="http://libbsd.freedesktop.org/releases/$pkgname-$pkgver.tar.xz
	musl-fixes.patch"
Ariadne Conill's avatar
Ariadne Conill committed
17

Daniel Sabogal's avatar
Daniel Sabogal committed
18
builddir="$srcdir/$pkgname-$pkgver"
Ariadne Conill's avatar
Ariadne Conill committed
19
prepare() {
Daniel Sabogal's avatar
Daniel Sabogal committed
20 21 22
	default_prepare || return 1

	cd "$builddir"
23
	autoreconf -fi || return 1
Ariadne Conill's avatar
Ariadne Conill committed
24 25 26
}

build() {
Daniel Sabogal's avatar
Daniel Sabogal committed
27
	cd "$builddir"
28 29 30 31
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
Ariadne Conill's avatar
Ariadne Conill committed
32 33 34 35 36 37 38 39 40
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
Daniel Sabogal's avatar
Daniel Sabogal committed
41 42
	make DESTDIR="$pkgdir" -C "$builddir" \
		install || return 1
Ariadne Conill's avatar
Ariadne Conill committed
43 44
}

45 46 47 48 49 50
md5sums="e935c1bb6cc98a4a43cb1da22795493a  libbsd-0.8.3.tar.xz
21a350d9723d667b5ed8a8b610528843  musl-fixes.patch"
sha256sums="934b634f4dfd865b6482650b8f522c70ae65c463529de8be907b53c89c3a34a8  libbsd-0.8.3.tar.xz
cc7d2f2dfe2cc5d823e6ea5f7c1efea236f688c7ee53ec925471264e54c72359  musl-fixes.patch"
sha512sums="155b895d6bd62b180718d65a2cda7484946c492d52735a57b51005705dfe4528b6a72e8745acea47b01fe68e3bbbe3c036c5e9998a8d06fc79efe2b96a04767f  libbsd-0.8.3.tar.xz
032b8de7abfe6ffec80957db05fcb02b2cec74f26ecc99ef20d2a314efd0dfd88486e31bd33dd7460ac85b48acdab3ba849cd96bdd0884cd5667e7a43ab30c3a  musl-fixes.patch"