From e19e52fe9e24760c7e05b1dd5b04114965ae7586 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 4 Jun 2013 13:33:12 +0000 Subject: main/qpdf: moved from testing ref #1930 (cherry picked from commit ab3913647a14a3e62834ec076a0651bebf793835) --- main/qpdf/APKBUILD | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 main/qpdf/APKBUILD (limited to 'main') 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 +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" -- cgit v1.2.3