diff options
Diffstat (limited to 'testing/jbig2dec/APKBUILD')
-rw-r--r-- | testing/jbig2dec/APKBUILD | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/testing/jbig2dec/APKBUILD b/testing/jbig2dec/APKBUILD new file mode 100644 index 0000000000..6c502864e5 --- /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" |