1 # Maintainer: Dan Serban
2 # Contributor: Liu Chang <goduck777@gmail.com>
7 pkgdesc="PDFTK, built from binary executables available in Debian repositories"
8 url=http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/
13 conflicts=(pdftk pdfchain-all-inclusive)
15 [ "${CARCH}" == "x86_64" ] && _filearch=amd64
19 _url_prefix="http://ftp.nl.debian.org/debian/pool/main"
22 rm pdftk_*.deb 2>/dev/null || true
23 _url=$(lynx -dump ${_url_prefix}/p/pdftk/ | grep -o http.*/pdftk_.*_${_filearch}\.deb | tail -1)
25 bsdtar -xf $(basename ${_url}) data.tar.gz
26 bsdtar -xf data.tar.gz -C "${pkgdir}"
30 rm libgcj12_*.deb 2>/dev/null || true
31 _url=$(lynx -dump ${_url_prefix}/g/gcj-4.6/ | grep -o http.*/libgcj12_.*_${_filearch}\.deb | tail -1)
33 bsdtar -xf $(basename ${_url}) data.tar.gz
34 bsdtar -xf data.tar.gz || true
36 install -Dm755 $(find usr/lib -type f | grep libgcj.so) "${pkgdir}"/usr/lib/libgcj.so.12