diff options
author | William Pitcock <nenolod@dereferenced.org> | 2013-03-28 11:58:37 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2013-03-28 11:58:37 -0500 |
commit | eacb8bc346ea54a723aea2c924c9d94cf36a247f (patch) | |
tree | 8d4852127371ca0a4e727733b29accd7557a335b /main/libbsd | |
parent | 9334e869214a650e2d854ddcbee6e4ddacf1ac9c (diff) | |
download | aports-eacb8bc346ea54a723aea2c924c9d94cf36a247f.tar.bz2 aports-eacb8bc346ea54a723aea2c924c9d94cf36a247f.tar.xz |
main/libbsd: move from testing
Diffstat (limited to 'main/libbsd')
-rw-r--r-- | main/libbsd/APKBUILD | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/main/libbsd/APKBUILD b/main/libbsd/APKBUILD new file mode 100644 index 000000000..a8f0866b0 --- /dev/null +++ b/main/libbsd/APKBUILD @@ -0,0 +1,47 @@ +# Contributor: William Pitcock <nenolod@dereferenced.org> +# Maintainer: William Pitcock <nenolod@dereferenced.org> +pkgname=libbsd +pkgver=0.4.2 +pkgrel=0 +pkgdesc="commonly-used BSD functions not implemented by all libcs" +url="http://libbsd.freedesktop.org/" +arch="all" +license="BSD" +depends="" +depends_dev="" +makedepends="$depends_dev" +install="" +subpackages="$pkgname-dev $pkgname-doc" +source="http://libbsd.freedesktop.org/releases/libbsd-$pkgver.tar.gz" + +_builddir="$srcdir"/libbsd-$pkgver +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} + +build() { + cd "$_builddir" + ./configure --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 + rm -f "$pkgdir"/usr/lib/*.la +} + +md5sums="591fc9de4ca22f78cf87a94e648a92f4 libbsd-0.4.2.tar.gz" +sha256sums="922b4885e0ccfd64b92fcacdb3fba18024fcab1e0c1b073f5ec0fe76388cbfdc libbsd-0.4.2.tar.gz" +sha512sums="973d07b39040d9a0f3ee6b347c23a7a2dee0ec9490532909e8e815679d4bbe6d2f8caedc6f84162cf684bef3819a5ad5883f41e64675c9fb7d8be4db0aa1e619 libbsd-0.4.2.tar.gz" |