aboutsummaryrefslogtreecommitdiffstats
path: root/main/qpdf
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-06-04 13:33:12 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-06-04 13:54:59 +0000
commitab3913647a14a3e62834ec076a0651bebf793835 (patch)
tree521de00a05d83e88e0d4d7527abf8a76d34e65b7 /main/qpdf
parentcb6ae81b1e46f152ea25d90cf3a960cb31b698ee (diff)
downloadaports-ab3913647a14a3e62834ec076a0651bebf793835.tar.bz2
aports-ab3913647a14a3e62834ec076a0651bebf793835.tar.xz
main/qpdf: moved from testing
Diffstat (limited to 'main/qpdf')
-rw-r--r--main/qpdf/APKBUILD54
1 files changed, 54 insertions, 0 deletions
diff --git a/main/qpdf/APKBUILD b/main/qpdf/APKBUILD
new file mode 100644
index 0000000000..58119fbd04
--- /dev/null
+++ b/main/qpdf/APKBUILD
@@ -0,0 +1,54 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=qpdf
+pkgver=4.1.0
+pkgrel=1
+pkgdesc="Command-line tools and library for transforming PDF files"
+url="http://qpdf.sourceforge.net/"
+arch="all"
+license="Artistic 2.0"
+# fix-qpdf is a perl script
+depends="perl"
+depends_dev="pcre-dev zlib-dev"
+makedepends="$depends_dev bash"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
+source="http://downloads.sourceforge.net/sourceforge/qpdf/qpdf-$pkgver.tar.gz"
+
+_builddir="$srcdir"/qpdf-$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 \
+ --disable-static \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+libs() {
+ pkgdesc="QPDF library for transforming PDF files"
+ install -d "$subpkgdir"/usr
+ mv "$pkgdir"/usr/lib "$subpkgdir"/usr/
+}
+
+md5sums="eedd61acc53744446d181429651a9baf qpdf-4.1.0.tar.gz"
+sha256sums="d23303a7ffee2120fbcdc06ef0846688a10fca09421aea5416736bff0dcd9bfc qpdf-4.1.0.tar.gz"
+sha512sums="60864e5a51efc7c584bb335c53b1ca5496abbd8ee5ae0033d12d321586a714301162e0c3fd7bf2159d0b7466f168fe3f3bf988569bc5a94ce02a283810c36f5b qpdf-4.1.0.tar.gz"