diff --git a/extra/qpdf/PKGBUILD b/extra/qpdf/PKGBUILD new file mode 100644 index 000000000..ba344cc0b --- /dev/null +++ b/extra/qpdf/PKGBUILD @@ -0,0 +1,37 @@ +# $Id$ +# Maintainer: AndyRTR +# Contributor: Miguel Revilla +# Contributor: David Sotelo +# Contributor: Nuno Araujo + +pkgname=qpdf +pkgver=4.2.0 +pkgrel=1 +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=(https://github.com/qpdf/qpdf/archive/release-qpdf-4.2.0.tar.gz) +md5sums=('0d637fc3a0a8663c8c16cb49c679c699') + +build() { + cd "${srcdir}/qpdf-release-${pkgname}-${pkgver}" + ./configure --prefix=/usr --disable-static + make +} + +check() { + cd "$srcdir/qpdf-release-$pkgname-$pkgver" + make -k check +} + +package() { + cd "${srcdir}/qpdf-release-${pkgname}-${pkgver}" + make DESTDIR="${pkgdir}/" install + + mkdir -m755 -p ${pkgdir}/usr/share/licenses/${pkgname} + install -m644 Artistic-2.0 ${pkgdir}/usr/share/licenses/${pkgname}/ +}