2020-04-09 12:17:50 +00:00
|
|
|
# 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>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - explicitly link v5/v6 with libatomic
|
|
|
|
|
|
|
|
pkgname=qpdf
|
2021-05-09 18:07:56 +00:00
|
|
|
pkgver=10.3.2
|
2020-04-09 12:17:50 +00:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="QPDF: A Content-Preserving PDF Transformation System"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://github.com/qpdf/qpdf"
|
|
|
|
license=('custom:Artistic-2.0' 'Apache')
|
|
|
|
depends=('libjpeg-turbo' 'zlib' 'gnutls')
|
|
|
|
#optdepends=('perl: required for fix-qdf')
|
|
|
|
#checkdepends=('perl')
|
2021-05-09 18:07:56 +00:00
|
|
|
# https://github.com/qpdf/qpdf/releases/download/release-qpdf-10.3.2/qpdf-10.3.2.sha256
|
2020-04-09 12:17:50 +00:00
|
|
|
source=(#https://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc})
|
|
|
|
https://github.com/qpdf/qpdf/releases/download/release-${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz{,.asc})
|
2021-05-09 18:07:56 +00:00
|
|
|
sha256sums=('062808c40ef8741ec8160ae00168638a712cfa1d4bf673e8e595ab5eba1da947'
|
2020-04-09 12:17:50 +00:00
|
|
|
'SKIP')
|
|
|
|
validpgpkeys=('C2C96B10011FE009E6D1DF828A75D10998012C7E') # "Jay Berkenbilt <ejb@ql.org>"
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
[[ $CARCH == "arm" || $CARCH == "armv6h" ]] && LIBS="-latomic"
|
|
|
|
LIBS=$LIBS ./configure --prefix=/usr \
|
|
|
|
--disable-static \
|
|
|
|
--enable-crypto-gnutls \
|
|
|
|
--disable-crypto-openssl \
|
|
|
|
--disable-implicit-crypto \
|
|
|
|
--enable-show-failed-test-output
|
2020-10-28 12:52:40 +00:00
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
2020-04-09 12:17:50 +00:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make check # passes all
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
make DESTDIR="${pkgdir}/" install
|
|
|
|
|
|
|
|
install -Dm644 completions/bash/qpdf "${pkgdir}/usr/share/bash-completion/completions/qpdf"
|
|
|
|
install -Dm644 completions/zsh/_qpdf "${pkgdir}/usr/share/zsh/site-functions/_qpdf"
|
|
|
|
|
|
|
|
mkdir -m755 -p "${pkgdir}"/usr/share/licenses/${pkgname}
|
|
|
|
install -m644 {Artistic-2.0,LICENSE.txt} "${pkgdir}"/usr/share/licenses/${pkgname}/
|
|
|
|
}
|