# Template file for 'pdftk'
pkgname=pdftk
version=2.02
revision=1
wrksrc="${pkgname}-${version}-dist"
build_wrksrc=${pkgname}
hostmakedepends="unzip gcc-gcj"
makedepends="libgcj-devel"
nocross=yes
short_desc="Command-line tool for working with PDFs"
maintainer="Andrea Brancaleoni <miwaxe@gmail.com>"
license="GPL-2"
homepage="https://www.pdflabs.com/tools/pdftk-server/"
distfiles="http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/${pkgname}-${version}-src.zip"
checksum=118f6a25fd3acaafb58824dce6f97cdc07e56050e666b90e4c4ef426ea37b8c1

do_build() {
	cp ${FILESDIR}/Makefile Makefile
	make
}
do_install() {
	vbin pdftk
	vman ../pdftk.1
}
