summaryrefslogtreecommitdiffstats
path: root/testing/jbig2dec
diff options
context:
space:
mode:
authorMichael Zhou <zhoumichaely@gmail.com>2011-08-05 02:26:00 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2011-08-05 08:17:45 +0000
commit87830e5f7dc6f1de3c984be12c3e1a4e1b6112fd (patch)
treed5baea3016cfcc306ad24980e558d775289bf7ae /testing/jbig2dec
parent334be59682a140cddd24bfd0095ada5c22d38202 (diff)
downloadaports-87830e5f7dc6f1de3c984be12c3e1a4e1b6112fd.tar.bz2
aports-87830e5f7dc6f1de3c984be12c3e1a4e1b6112fd.tar.xz
testing/jbig2dec: new port
Diffstat (limited to 'testing/jbig2dec')
-rw-r--r--testing/jbig2dec/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/jbig2dec/APKBUILD b/testing/jbig2dec/APKBUILD
new file mode 100644
index 000000000..6c502864e
--- /dev/null
+++ b/testing/jbig2dec/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Michael Zhou <zhoumichaely@gmail.com>
+# Maintainer:
+pkgname=jbig2dec
+pkgver=0.11
+pkgrel=0
+pkgdesc="JBIG2 image compression format decoder"
+url="http://jbig2dec.sourceforge.net"
+arch="x86 x86_64"
+license="GPL"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://ghostscript.com/~giles/jbig2/$pkgname/$pkgname-$pkgver.tar.gz"
+
+_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
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="1f61e144852c86563fee6e5ddced63f1 jbig2dec-0.11.tar.gz"