summaryrefslogtreecommitdiff
path: root/community/pdftrans/PKGBUILD
blob: 59a1970a2b507fc9e179853c352ebd1e9a315bbb (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
# Contributor: Jaroslaw Swierczynski <swiergot@aur.archlinux.org>

pkgname=pdftrans
pkgver=1.2
pkgrel=7
arch=('i686' 'x86_64')
pkgdesc="A utility to add metadata, protect, and encrypt PDF documents"
url="http://maddingue.free.fr/softwares/pdftrans.html.en"
license=('GPL')
depends=('java-runtime' 'itext' 'bcprov')
source=(http://maddingue.free.fr/softwares/download/PDFTrans/$pkgname-$pkgver.zip \
	$pkgname.sh)
md5sums=('1d3677f7101ba5e27492b02843017d26' '1be06ba6669dfd895aadbd308f37715a')

build() {
  install -D $pkgname.sh $pkgdir/usr/bin/$pkgname

  cd $pkgname

  # fix http://bugs.archlinux.org/task/19295 FS#19295 - [pdftrans] needs updating to follow itext java class renaming
  sed 's/lowagie/itextpdf/' -i src/PDFTrans.java
  javac -classpath /usr/share/java/itext/itext.jar -d classes src/PDFTrans.java

  install -D -m644 classes/PDFTrans.class $pkgdir/usr/share/java/$pkgname/PDFTrans.class
  install -D -m644 doc/pdftrans.1 $pkgdir/usr/share/man/man1/pdftrans.1
}