aboutsummaryrefslogtreecommitdiffstats
path: root/testing/jbigkit
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2019-01-01 11:03:30 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2019-01-01 11:03:30 +0000
commit4866d515a5d72880e30d8d0aa93def05dd5a1f64 (patch)
tree929a1be2e1df52d44152ce044186c9f9b8877fac /testing/jbigkit
parent1b290936086ad65427e8d3d94de41ea6e4763625 (diff)
downloadaports-4866d515a5d72880e30d8d0aa93def05dd5a1f64.tar.bz2
aports-4866d515a5d72880e30d8d0aa93def05dd5a1f64.tar.xz
testing/jbigkit: new aport
Diffstat (limited to 'testing/jbigkit')
-rw-r--r--testing/jbigkit/APKBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/testing/jbigkit/APKBUILD b/testing/jbigkit/APKBUILD
new file mode 100644
index 0000000000..a969165c9e
--- /dev/null
+++ b/testing/jbigkit/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=jbigkit
+pkgver=2.1
+pkgrel=0
+pkgdesc="Data compression library/utilities for bi-level high-resolution images"
+url="http://www.cl.cam.ac.uk/~mgk25/jbigkit/"
+arch="all"
+license="GPL"
+# test fails
+options="!check"
+subpackages="$pkgname-dev $pkgname-doc"
+source="https://www.cl.cam.ac.uk/~mgk25/download/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ default_prepare
+ cd "$builddir"
+ unset CFLAGS CPPFLAGS LDFLAGS
+ [ "$CARCH" == "x86_64" ] && export CFLAGS="$CFLAGS -fPIC"
+}
+
+build() {
+ cd "$builddir"
+ make CFLAGS="$CFLAGS"
+}
+
+package() {
+ cd "$builddir"
+ install -D -m644 libjbig/libjbig.a "$pkgdir"/usr/lib/libjbig.a
+ install -D -m644 libjbig/libjbig85.a "$pkgdir"/usr/lib/libjbig85.a
+ install -D -m644 libjbig/jbig.h "$pkgdir"/usr/include/jbig.h
+ install -D -m644 libjbig/jbig_ar.h "$pkgdir"/usr/include/jbig_ar.h
+ install -D -m644 libjbig/jbig85.h "$pkgdir"/usr/include/jbig85.h
+ install -D -m755 pbmtools/jbgtopbm "$pkgdir"/usr/bin/jbgtopbm
+ install -D -m755 pbmtools/pbmtojbg "$pkgdir"/usr/bin/pbmtojbg
+ install -D -m755 pbmtools/jbgtopbm85 "$pkgdir"/usr/bin/jbgtopbm85
+ install -D -m755 pbmtools/pbmtojbg85 "$pkgdir"/usr/bin/pbmtojbg85
+ install -d -m755 "$pkgdir"/usr/share/man/man1
+ install -m644 pbmtools/*.1* "$pkgdir"/usr/share/man/man1
+}
+
+sha512sums="c4127480470ef90db1ef3bd2caa444df10b50ed8df0bc9997db7612cb48b49278baf44965028f1807a21028eb965d677e015466306b44683c4ec75a23e1922cf jbigkit-2.1.tar.gz"