aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qpdf/APKBUILD
blob: 58119fbd0456f4747f7dd6d18e79952abfda162c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qpdf
pkgver=4.1.0
pkgrel=1
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 zlib-dev"
makedepends="$depends_dev bash"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="http://downloads.sourceforge.net/sourceforge/qpdf/qpdf-$pkgver.tar.gz"

_builddir="$srcdir"/qpdf-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

libs() {
	pkgdesc="QPDF library for transforming PDF files"
	install -d "$subpkgdir"/usr
	mv "$pkgdir"/usr/lib "$subpkgdir"/usr/
}

md5sums="eedd61acc53744446d181429651a9baf  qpdf-4.1.0.tar.gz"
sha256sums="d23303a7ffee2120fbcdc06ef0846688a10fca09421aea5416736bff0dcd9bfc  qpdf-4.1.0.tar.gz"
sha512sums="60864e5a51efc7c584bb335c53b1ca5496abbd8ee5ae0033d12d321586a714301162e0c3fd7bf2159d0b7466f168fe3f3bf988569bc5a94ce02a283810c36f5b  qpdf-4.1.0.tar.gz"