aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-08-28 13:03:39 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-08-28 22:30:51 +0000
commit3256a64739ec62306412d4298601aa91421ea11e (patch)
treed3971c90f077dea5042ca658bdd96fbddbf52e65
parent511108bad3400b35096c65e6bcf32cd7c2bee8c8 (diff)
downloadaports-3256a64739ec62306412d4298601aa91421ea11e.tar.gz
aports-3256a64739ec62306412d4298601aa91421ea11e.tar.bz2
aports-3256a64739ec62306412d4298601aa91421ea11e.tar.xz
main/confuse: upgrade to 3.2.1 and modernize
-rw-r--r--main/confuse/APKBUILD28
1 files changed, 14 insertions, 14 deletions
diff --git a/main/confuse/APKBUILD b/main/confuse/APKBUILD
index c34aecc0f8..9783cbfa03 100644
--- a/main/confuse/APKBUILD
+++ b/main/confuse/APKBUILD
@@ -1,38 +1,38 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=confuse
-pkgver=3.2
+pkgver=3.2.1
pkgrel=0
pkgdesc="C library for parsing configuration files"
url="https://github.com/martinh/libconfuse"
arch="all"
license="BSD"
-depends=""
makedepends="flex bison"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/martinh/libconfuse/releases/download/v$pkgver/confuse-$pkgver.tar.xz"
-_builddir="$srcdir/$pkgname-$pkgver"
-prepare() {
- cd "$_builddir"
-}
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--enable-shared \
- --disable-nls \
- || return 1
- make || return 1
- make check || return 1
+ --disable-nls
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
+
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
install -D -m644 libconfuse.pc "$pkgdir"/usr/lib/pkgconfig/libconfuse.pc
}
-sha512sums="4c81b52bca951ab46961ed91bf9e887f7940dedfb69eaf2f6905cb2d88275e635c80d2570797e4276b5cd970b805ab902da6cd6f89dc64216b0b02445c912acd confuse-3.2.tar.xz"
+sha512sums="738bacf6a3abb9c64666fec103eb18c8456b994e7ba3562bdb090ef4eb33f0330da844de14d658ef44e74f90104f67ceaf408d21ddf0d251f4c6ddd80e0b387c confuse-3.2.1.tar.xz"