### this file is sourced not run
PKGVER=2.02
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=pdftk-2.02-src.zip
MD5SUM=6534365fd6727724f288a556ede33faa	
SRC_URL=http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/$TARBALL
BUNDLE=

SLACKREQ='aaa-gcclibs-full' # need libgcj
SLACKDESC='pdftk: pdftk 2.02 (PDF swiss army tool)  
pdftk:  
pdftk: pdftk (PDF toolkit) is a versatile command-line utility to manipulate 
pdftk: PDF documents: merge, split, rotate, watermark, etc.  
pdftk: 
pdftk: 
pdftk: 
pdftk: 
pdftk: 
pdftk: 
pdftk: http://www.pdflabs.com/tools/pdftk-server/
'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_check $SRC_DIR $TARBALL $MD5SUM &&
	unzip $SRC_DIR/$TARBALL -d tmp > /dev/null
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/pdftk*/pdftk
	make -f Makefile.Slackware-13.1 && # note: parallel build fails.
	
	# install
	cp pdftk /usr/bin &&
	cd .. &&
	cp pdftk.1 /usr/share/man/man1 &&
	mkdir -p /usr/share/doc/pdftk-2.02 &&
	cp pdftk.1.html pdftk.1.txt /usr/share/doc/pdftk-2.02 &&
	
	pkg_build_slackdesc
}


