summaryrefslogtreecommitdiff
path: root/testing/qpdf/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'testing/qpdf/PKGBUILD')
-rw-r--r--testing/qpdf/PKGBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/qpdf/PKGBUILD b/testing/qpdf/PKGBUILD
new file mode 100644
index 000000000..6b7ab96cd
--- /dev/null
+++ b/testing/qpdf/PKGBUILD
@@ -0,0 +1,39 @@
+# $Id: PKGBUILD 165886 2012-09-02 20:15:26Z andyrtr $
+# Maintainer: AndyRTR <andyrtr@archlinux.org>
+# Contributor: Miguel Revilla <yo at miguelrevilla.com>
+# Contributor: David Sotelo <dvsotelo at gmail.com>
+# Contributor: Nuno Araujo <nuno.araujo@russo79.com>
+
+pkgname=qpdf
+pkgver=3.0.1
+pkgrel=2
+pkgdesc="QPDF: A Content-Preserving PDF Transformation System"
+arch=('i686' 'x86_64')
+url="http://qpdf.sourceforge.net/"
+license=('custom:Artistic-2.0')
+depends=('pcre' 'perl')
+makedepends=('make')
+options=('!libtool')
+source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz)
+md5sums=('48767e2519029d0214cd0fcafa3a8f8c')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ # fix rpath errors (from Fedora spec)
+ autoreconf -vfi
+ ./configure --prefix=/usr --disable-static
+ make
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make -k check
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}/" install
+
+ mkdir -m755 -p ${pkgdir}/usr/share/licenses/${pkgname}
+ install -m644 Artistic-2.0 ${pkgdir}/usr/share/licenses/${pkgname}/
+}