New package: pdftk-2.02

This commit is contained in:
Helmut Pozimski 2019-11-29 09:25:32 +01:00 committed by Leah Neukirchen
parent 45fc4bdb65
commit 099983f7c2
2 changed files with 48 additions and 0 deletions

View file

@ -0,0 +1,19 @@
# Based on 'Makefile.Debian', part of pdftk
# Copyright (c) 2004-2012 Sid Steward
export CXX= @CXX@
export GCJ= gcj-6
export GCJH= gcjh-6
export GJAR= gjar-6
export LIBGCJ= /usr/share/java/libgcj.jar
export AR= @AR@
export RM= rm
export ARFLAGS= rs
export RMFLAGS= -vf
export CPPFLAGS= -DPATH_DELIM=0x2f -DASK_ABOUT_WARNINGS=false -DUNBLOCK_SIGNALS -fdollars-in-identifiers
export CXXFLAGS= @CXXFLAGS@
export GCJFLAGS= -Wno-all -fsource=1.3 -O2 -fPIC -L/usr/lib
export GCJHFLAGS= -force
export LDLIBS= @LDFLAGS@ -lgcj
include Makefile.Base

29
srcpkgs/pdftk/template Normal file
View file

@ -0,0 +1,29 @@
# Template file for 'pdftk'
pkgname=pdftk
version=2.02
revision=4
wrksrc="${pkgname}-${version}-dist"
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
}