aboutsummaryrefslogtreecommitdiffstats
path: root/main/qpdf/APKBUILD
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2017-08-10 09:46:46 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2017-08-10 09:46:46 +0200
commit8b7241a24c5220ff1f7f66b0bddf91e592476fc5 (patch)
tree30c4378afd25b630b26d4d2ba7f59583b8dd79fc /main/qpdf/APKBUILD
parent2241bb4ac96f785a7720037972f53e4f13be0421 (diff)
downloadaports-8b7241a24c5220ff1f7f66b0bddf91e592476fc5.tar.bz2
aports-8b7241a24c5220ff1f7f66b0bddf91e592476fc5.tar.xz
main/qpdf: split fix-qdf run tests and cleanup
Diffstat (limited to 'main/qpdf/APKBUILD')
-rw-r--r--main/qpdf/APKBUILD51
1 files changed, 24 insertions, 27 deletions
diff --git a/main/qpdf/APKBUILD b/main/qpdf/APKBUILD
index bd33be502d..4ddbf2dc3f 100644
--- a/main/qpdf/APKBUILD
+++ b/main/qpdf/APKBUILD
@@ -1,33 +1,27 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qpdf
pkgver=6.0.0
-pkgrel=1
+pkgrel=2
pkgdesc="Command-line tools and library for transforming PDF files"
url="http://qpdf.sourceforge.net/"
arch="all"
license="Artistic 2.0"
-# fix-qpdf is a perl script
-depends="perl"
-depends_dev="pcre-dev"
-makedepends="$depends_dev zlib-dev bash"
+depends=""
+# coreutils needed for tests
+makedepends="zlib-dev pcre-dev bash coreutils perl"
install=""
-subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-fix-qdf:fix_qdf:noarch"
source="http://downloads.sourceforge.net/sourceforge/qpdf/qpdf-$pkgver.tar.gz"
-_builddir="$srcdir"/qpdf-$pkgver
+builddir="$srcdir"/qpdf-$pkgver
+
prepare() {
- local i
- cd "$_builddir"
- update_config_sub || return 1
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
+ update_config_sub
+ default_prepare
}
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -36,22 +30,25 @@ build() {
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
- --disable-static \
- || return 1
- make || return 1
+ --disable-static
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
- cd "$_builddir"
- make DESTDIR="$pkgdir" install || return 1
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
}
-libs() {
- pkgdesc="QPDF library for transforming PDF files"
- install -d "$subpkgdir"/usr
- mv "$pkgdir"/usr/lib "$subpkgdir"/usr/
+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/
}
-md5sums="e014bd3ecf1c4d1a520bbc14d84ac20e qpdf-6.0.0.tar.gz"
-sha256sums="a9fdc7e94d38fcd3831f37b6e0fe36492bf79aa6d54f8f66062cf7f9c4155233 qpdf-6.0.0.tar.gz"
sha512sums="303e3cc77ddb87b9494e26c35e0b45b42f73692054c56a00f2e4f1922633c6ebb45c8684992cd9bf32f03366fcc4cd7e7ec6fb9432d2dbba6e0b24395909b5bf qpdf-6.0.0.tar.gz"