diff options
author | Daniel Sabogal <dsabogalcc@gmail.com> | 2016-08-27 10:45:26 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2016-08-28 02:52:06 +0000 |
commit | 6e99997c01f94cd678203319555029f31a0ed07b (patch) | |
tree | b26da7272d800a1a35317e37fccc3bb8b8af3a07 /main/libbsd | |
parent | e86a5bc41a8d87d293c4aa5a1568025dc40a7efa (diff) | |
download | aports-6e99997c01f94cd678203319555029f31a0ed07b.tar.bz2 aports-6e99997c01f94cd678203319555029f31a0ed07b.tar.xz |
main/libbsd: improve abuild
Diffstat (limited to 'main/libbsd')
-rw-r--r-- | main/libbsd/APKBUILD | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/main/libbsd/APKBUILD b/main/libbsd/APKBUILD index f58a03f154..51b93c252a 100644 --- a/main/libbsd/APKBUILD +++ b/main/libbsd/APKBUILD @@ -3,33 +3,27 @@ # Maintainer: William Pitcock <nenolod@dereferenced.org> pkgname=libbsd pkgver=0.8.1 -pkgrel=0 +pkgrel=1 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="" +makedepends="autoconf automake libtool bsd-compat-headers linux-headers" subpackages="$pkgname-dev $pkgname-doc" source="http://libbsd.freedesktop.org/releases/$pkgname-$pkgver.tar.xz musl-fixes.patch" -_builddir="$srcdir"/libbsd-$pkgver +builddir="$srcdir/$pkgname-$pkgver" prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + default_prepare || return 1 + + cd "$builddir" autoreconf -fi || return 1 } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -43,8 +37,8 @@ build() { } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" -C "$builddir" \ + install || return 1 } md5sums="f3daff0283af6e30f25d68be2deac4ef libbsd-0.8.1.tar.xz |