diff options
-rw-r--r-- | main/libconfig/APKBUILD | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/main/libconfig/APKBUILD b/main/libconfig/APKBUILD index 795f8d0002..e8f5612b03 100644 --- a/main/libconfig/APKBUILD +++ b/main/libconfig/APKBUILD @@ -1,35 +1,39 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libconfig pkgver=1.5 -pkgrel=2 -pkgdesc="a simple library for manipulating structured configuration files" +pkgrel=3 +pkgdesc="A simple library for manipulating structured configuration files" url="http://www.hyperrealm.com/libconfig/" arch="all" -license='LGPL' -depends= +license="LGPL" makedepends="autoconf automake libtool" source="$pkgname-$pkgver.tar.gz::https://github.com/hyperrealm/$pkgname/archive/v$pkgver.tar.gz" subpackages="$pkgname-doc $pkgname-dev $pkgname++:_cxx" -_builddir="$srcdir"/$pkgname-$pkgver +builddir="$srcdir/$pkgname-$pkgver" + prepare() { - cd "$_builddir" + cd "$builddir" autoreconf -vif } build() { - cd "$_builddir" + cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ - --mandir=/usr/share/man \ - || return 1 - make || return 1 + --mandir=/usr/share/man + make +} + +check() { + cd "$builddir" + make check } package() { - cd "$_builddir" + cd "$builddir" make -j1 DESTDIR="$pkgdir/" install } |