1 # Maintainer: AndyRTR <andyrtr@archlinux.org>
2 # Contributor: Miguel Revilla <yo at miguelrevilla.com>
3 # Contributor: David Sotelo <dvsotelo at gmail.com>
4 # Contributor: Nuno Araujo <nuno.araujo@russo79.com>
9 pkgdesc="QPDF: A Content-Preserving PDF Transformation System"
11 url="https://github.com/qpdf/qpdf"
12 license=('custom:Artistic-2.0' 'Apache')
13 depends=('libjpeg-turbo' 'zlib' 'gnutls')
14 #optdepends=('perl: required for fix-qdf')
15 #checkdepends=('perl')
16 # https://github.com/qpdf/qpdf/releases/download/release-qpdf-10.4.0/qpdf-10.4.0.sha256
17 source=(#https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc})
18 https://github.com/qpdf/qpdf/releases/download/release-${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz{,.asc})
19 sha256sums=('9ac6e691cc3f35a9fe44632e3fba727e1b6ef21181c0a883287abf5cf97ae222'
21 validpgpkeys=('C2C96B10011FE009E6D1DF828A75D10998012C7E') # "Jay Berkenbilt <ejb@ql.org>"
24 cd ${pkgname}-${pkgver}
25 ./configure --prefix=/usr \
27 --enable-crypto-gnutls \
28 --disable-crypto-openssl \
29 --disable-implicit-crypto \
30 --enable-show-failed-test-output
31 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
36 cd ${pkgname}-${pkgver}
37 make check # passes all
41 cd ${pkgname}-${pkgver}
42 make DESTDIR="${pkgdir}/" install
44 install -Dm644 completions/bash/qpdf "${pkgdir}/usr/share/bash-completion/completions/qpdf"
45 install -Dm644 completions/zsh/_qpdf "${pkgdir}/usr/share/zsh/site-functions/_qpdf"
47 mkdir -m755 -p "${pkgdir}"/usr/share/licenses/${pkgname}
48 install -m644 {Artistic-2.0,LICENSE.txt} "${pkgdir}"/usr/share/licenses/${pkgname}/