aboutsummaryrefslogtreecommitdiffstats
path: root/main/jbig2dec
diff options
context:
space:
mode:
Diffstat (limited to 'main/jbig2dec')
-rw-r--r--main/jbig2dec/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/main/jbig2dec/APKBUILD b/main/jbig2dec/APKBUILD
new file mode 100644
index 0000000000..fdf664f684
--- /dev/null
+++ b/main/jbig2dec/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Michael Zhou <zhoumichaely@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=jbig2dec
+pkgver=0.11
+pkgrel=0
+pkgdesc="JBIG2 image compression format decoder"
+url="http://jbig2dec.sourceforge.net"
+arch="all"
+license="GPL2+"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://sourceforge.net/projects/$pkgname/files/$pkgname/$pkgver/$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"
+sha256sums="7e2d8330b36f2765da22043d174827bee0f30db8d78c330904f363275c7dd0b9 jbig2dec-0.11.tar.gz"
+sha512sums="25f71ad58af0254d70a9d23efc488e1f2d931b47e344f2acf9931959c1e93749051a57905291a7dfd40407bc1995726e667d0ed6ef94e07da02330f14477c55e jbig2dec-0.11.tar.gz"