29 lines
793 B
Bash
29 lines
793 B
Bash
# Template file for 'pdftk'
|
|
pkgname=pdftk
|
|
version=2.02
|
|
revision=4
|
|
build_wrksrc=${pkgname}
|
|
hostmakedepends="unzip gcc6-gcj gcc6"
|
|
makedepends="libgcj-devel"
|
|
short_desc="Command-line tool for working with PDFs"
|
|
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://www.pdflabs.com/tools/pdftk-server/"
|
|
distfiles="http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/${pkgname}-${version}-src.zip"
|
|
checksum=118f6a25fd3acaafb58824dce6f97cdc07e56050e666b90e4c4ef426ea37b8c1
|
|
nocross=yes
|
|
|
|
do_build() {
|
|
sed -e "s;@CXX@;g++-6;" \
|
|
-e "s;@AR@;$AR;" \
|
|
-e "s;@CXXFLAGS@;${CXXFLAGS//-fstack-clash-protection};" \
|
|
-e "s;@LDFLAGS@;$LDFLAGS;" \
|
|
${FILESDIR}/Makefile > Makefile
|
|
make ${makejobs} || make ${makjobs}
|
|
}
|
|
|
|
do_install() {
|
|
vbin pdftk
|
|
vman ../pdftk.1
|
|
}
|