diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-03 14:32:57 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-10-03 14:32:57 +0000 |
commit | be801f02186fe266926ed826e3efd86754edba42 (patch) | |
tree | 5ff74a36b34dba8e3c3f559e4410c92b98a38827 /testing | |
parent | 6e405fba975af473b8564e23deeda18d60df83d6 (diff) | |
download | aports-be801f02186fe266926ed826e3efd86754edba42.tar.bz2 aports-be801f02186fe266926ed826e3efd86754edba42.tar.xz |
testing/qpdf: new aport
Command-line tools and library for transforming PDF files
http://qpdf.sourceforge.net/
Diffstat (limited to 'testing')
-rw-r--r-- | testing/qpdf/APKBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/testing/qpdf/APKBUILD b/testing/qpdf/APKBUILD new file mode 100644 index 0000000000..16a5327ba5 --- /dev/null +++ b/testing/qpdf/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: +# Maintainer: +pkgname=qpdf +pkgver=3.0.2 +pkgrel=0 +pkgdesc="Command-line tools and library for transforming PDF files" +url="http://qpdf.sourceforge.net/" +arch="all" +license="Artistic 2.0" +depends="" +depends_dev="" +makedepends="$depends_dev pcre-dev zlib-dev" +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="af6f6f964481295a6ca0766185bfa274 qpdf-3.0.2.tar.gz" |