From 1f9b260e6e2499000192680f502e67085500fd66 Mon Sep 17 00:00:00 2001 From: Roberto Oliveira Date: Fri, 20 Oct 2017 21:59:55 +0000 Subject: main/jbig2dec: upgrade to 0.14 and modernize --- main/jbig2dec/APKBUILD | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-) (limited to 'main/jbig2dec/APKBUILD') diff --git a/main/jbig2dec/APKBUILD b/main/jbig2dec/APKBUILD index 2dcddd7f5d..0a2e6fa676 100644 --- a/main/jbig2dec/APKBUILD +++ b/main/jbig2dec/APKBUILD @@ -1,47 +1,37 @@ # Contributor: Michael Zhou # Maintainer: Natanael Copa pkgname=jbig2dec -pkgver=0.13 +pkgver=0.14 pkgrel=0 pkgdesc="JBIG2 image compression format decoder" url="http://www.ghostscript.com/jbig2dec.html" arch="all" license="GPL2+" -depends="" -depends_dev="" -makedepends="$depends_dev autoconf automake libtool" -install="" +makedepends="autoconf automake libtool" subpackages="$pkgname-dev $pkgname-doc" source="http://downloads.ghostscript.com/public/jbig2dec/jbig2dec-$pkgver.tar.gz" -_builddir="$srcdir/$pkgname-$pkgver" +builddir="$srcdir/$pkgname-$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 + default_prepare + cd "$builddir" autoreconf -vif } build() { - cd "$_builddir" + cd "$builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ - --localstatedir=/var \ - || return 1 - make || return 1 + --localstatedir=/var + make } package() { - cd "$_builddir" - make DESTDIR="$pkgdir" install || return 1 + cd "$builddir" + make DESTDIR="$pkgdir" install } -md5sums="6efc70db0017516e11913280990623fb jbig2dec-0.13.tar.gz" -sha256sums="5aaca0070992cc2e971e3bb2338ee749495613dcecab4c868fc547b4148f5311 jbig2dec-0.13.tar.gz" -sha512sums="ef64a65c54bec65f61602de7130dc9594aae58aaea7958f7cc987f25d0794511e15a423e86501ace4f40c0364796fb97ceab72edb0b69232926767ba16c1b05d jbig2dec-0.13.tar.gz" +sha512sums="066bd880ac0665fc1e42b0ae0e481008b125aab6e173b7f82d61a2a30e72c90085cbded9b2a68c6836f92dea3d8d8d5c2228dba76e0d99c79c922197d215705b jbig2dec-0.14.tar.gz" -- cgit v1.2.3