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
# Please report PKGBUILD bugs at
# https://github.com/ystein/archlinux-aur-packages

# Maintainer: Yannik Stein <yannik.stein [at] gmail.com>
# Contributor: Dan Serban
# Submitter: Liu Chang <[email protected]>

pkgname=pdftk-bin
pkgver=2.01_1
pkgrel=1
pkgdesc="Swiss army knife for PDFs. Built from binary executables available \
in Debian repositories. Please report PKGBUILD bugs at \
https://github.com/ystein/archlinux-aur-packages."
url=http://www.pdfhacks.com/pdftk
arch=(i686 x86_64)
license=(GPL)
depends=(libgcj13)
provides=(pdftk)
conflicts=(pdftk pdfchain-all-inclusive)

if [ $CARCH = 'i686' ]; then
  _DEBARCH=i386
  md5sums=(ca4e27ddd81e5243ce5a836a2ae87fd8)
else
  _DEBARCH=amd64
  md5sums=(2b4001e9e234292c1c86836ff3dd03de)
fi
source=(http://ftp.de.debian.org/debian/pool/main/p/pdftk/pdftk_${pkgver//_/-}_${_DEBARCH}.deb)

build() {
  tar xf data.tar.gz
}

package() {
  cp -r usr $pkgdir
}