aboutsummaryrefslogtreecommitdiffstats
path: root/main/jbig2dec/APKBUILD
diff options
context:
space:
mode:
authorRoberto Oliveira <robertoguimaraes8@gmail.com>2017-10-20 21:59:55 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2017-10-23 13:36:05 +0200
commit1f9b260e6e2499000192680f502e67085500fd66 (patch)
treea3d32663473709eccd8064288f8e1ff9fe14fe14 /main/jbig2dec/APKBUILD
parente5ba0e9172a83480b7c4e612b4aebd334b8ecfb9 (diff)
downloadaports-1f9b260e6e2499000192680f502e67085500fd66.tar.bz2
aports-1f9b260e6e2499000192680f502e67085500fd66.tar.xz
main/jbig2dec: upgrade to 0.14 and modernize
Diffstat (limited to 'main/jbig2dec/APKBUILD')
-rw-r--r--main/jbig2dec/APKBUILD34
1 files changed, 12 insertions, 22 deletions
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 <zhoumichaely@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
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"