aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/jbig2enc/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/testing/jbig2enc/APKBUILD b/testing/jbig2enc/APKBUILD
new file mode 100644
index 0000000000..bd93f692e5
--- /dev/null
+++ b/testing/jbig2enc/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
+# Maintainer:
+pkgname=jbig2enc
+pkgver=0.29
+pkgrel=0
+pkgdesc="JBIG2 Encoder"
+url="https://github.com/agl/jbig2enc"
+arch="all"
+license="Apache-2.0"
+depends=""
+makedepends="
+ leptonica-dev
+ zlib-dev
+
+ automake
+ autoconf
+ libtool
+ "
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="jbig2enc-$pkgver.tar.gz::https://github.com/agl/jbig2enc/archive/$pkgver.tar.gz"
+builddir="$srcdir/jbig2enc-$pkgver"
+
+build() {
+ cd "$builddir"
+ ./autogen.sh
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="aa50cdaf61ef0ae473c8139d8da2a4c374450f8d0d31e2260031e8086dab9201c303c86d50cd51427135bef500718cbc3a53baabf2bf505f8908c22a3d361c51 jbig2enc-0.29.tar.gz"