# Maintainer: Natanael Copa pkgname=qpdf pkgver=7.1.1 pkgrel=0 pkgdesc="Command-line tools and library for transforming PDF files" url="http://qpdf.sourceforge.net" arch="all" license="Apache-2.0" depends="" makedepends="zlib-dev libjpeg-turbo-dev bash" checkdepends="coreutils perl" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-fix-qdf:fix_qdf:noarch " source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz" builddir="$srcdir/$pkgname-$pkgver" # secfixes: # 7.0.0-r0: # - CVE-2017-9208 # - CVE-2017-9209 # - CVE-2017-9210 # - CVE-2017-11624 # - CVE-2017-11625 # - CVE-2017-11626 # - CVE-2017-11627 # - CVE-2017-12595 prepare() { update_config_sub default_prepare } build() { cd "$builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-static make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" install } fix_qdf() { depends="qpdf perl" pkgdesc="Repair PDF files in QDF form after editing" mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/fix-qdf "$subpkgdir"/usr/bin/ } sha512sums="a75f988c7dd7ac174bdc981cd3696ca8b539ac6c581e3afecf601dc67277014cb4fe3f0e5cb75a67412cafa4eb645b2fc2d8a0ec203834464baf0c7e80baa0b4 qpdf-7.1.1.tar.gz"