2 # Maintainer: larsrh <hupel@in.tum.de>
7 pkgdesc="Pdftk is a simple tool for doing everyday things with PDF documents"
9 url="http://www.pdfhacks.com/pdftk"
11 depends=('gcc-gcj>=4.6.0')
12 options=('!makeflags')
13 source=("http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/${pkgname}-${pkgver}-src.zip"
15 md5sums=('9eb50fffcd621a627d387750c60982b4'
16 '0367cbace0938669c614f2e99c3ec882')
19 cd $srcdir/$pkgname-$pkgver-dist
21 # Apply makefile patch
22 patch -p1 < $srcdir/makefile.patch
26 make -f Makefile.Debian
29 install -D -m 755 pdftk $pkgdir/usr/bin/pdftk
31 # Install licenses and adjust permissions
33 LICENSE_DIR="$pkgdir/usr/share/licenses/$pkgname"
34 mkdir -p "$LICENSE_DIR"
35 cp -R license_gpl_pdftk/* "$LICENSE_DIR"
36 chmod -R 0755 "$LICENSE_DIR"
37 find "$LICENSE_DIR" -type f -exec chmod -x {} \;
40 install -D -m 644 "pdftk.1" "$pkgdir/usr/man/man1/pdftk.1"