diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-02 19:14:37 +0000 |
---|---|---|
committer | Leonardo Arena <rnalrd@alpinelinux.org> | 2017-11-03 10:53:23 +0000 |
commit | 6591aa4e8bbdf0fe15d560d0f980b49564ba97e3 (patch) | |
tree | 59a6023903990671590935fd53dda0843c6dc929 /main/libconfig | |
parent | cefbd9de8c5ad6bb95aecbf3b5387c5bccb246ed (diff) | |
download | aports-6591aa4e8bbdf0fe15d560d0f980b49564ba97e3.tar.bz2 aports-6591aa4e8bbdf0fe15d560d0f980b49564ba97e3.tar.xz |
main/libconfig: modernize and add check
Diffstat (limited to 'main/libconfig')
-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 } |