aboutsummaryrefslogtreecommitdiffstats
path: root/main/jbig2dec
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-04-01 12:51:46 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-04-01 12:52:06 +0000
commit810d220a4c583d3f1caad3709a54218dbe419512 (patch)
tree86060aa4c4187eb42e201a46f526d32cc27c1947 /main/jbig2dec
parent7afc497e0be5bad2931d88174031d3a56a58cc25 (diff)
downloadaports-810d220a4c583d3f1caad3709a54218dbe419512.tar.bz2
aports-810d220a4c583d3f1caad3709a54218dbe419512.tar.xz
main/jbig2dec: moved from testing
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"