void-packages/srcpkgs/pdftk/template
2016-11-28 15:31:59 +01:00

28 lines
783 B
Bash

# Template file for 'pdftk'
pkgname=pdftk
version=2.02
revision=3
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() {
sed -e "s;@CXX@;$CXX;" \
-e "s;@AR@;$AR;" \
-e "s;@CXXFLAGS@;$CXXFLAGS;" \
-e "s;@LDFLAGS@;$LDFLAGS;" \
${FILESDIR}/Makefile > Makefile
make ${makejobs} || make ${makjobs}
}
do_install() {
vbin pdftk
vman ../pdftk.1
}