35 lines
889 B
Bash
35 lines
889 B
Bash
# Template file for 'pdftk-java'
|
|
pkgname=pdftk-java
|
|
version=3.3.3
|
|
revision=2
|
|
hostmakedepends="gradle openjdk17"
|
|
depends="virtual?java-runtime bc-java java-commons-lang"
|
|
short_desc="Command-line tool for working with PDFs"
|
|
maintainer="classabbyamp <void@placeviolette.net>"
|
|
license="GPL-2.0-or-later"
|
|
homepage="https://gitlab.com/pdftk-java/pdftk"
|
|
distfiles="https://gitlab.com/pdftk-java/pdftk/-/archive/v${version}/pdftk-v${version}.tar.gz"
|
|
checksum=9c947de54658539e3a136e39f9c38ece1cf2893d143abb7f5bf3a2e3e005b286
|
|
|
|
do_build() {
|
|
. /etc/profile.d/jdk.sh
|
|
gradle --no-daemon build
|
|
}
|
|
|
|
do_check() {
|
|
. /etc/profile.d/jdk.sh
|
|
gradle --no-daemon test
|
|
}
|
|
|
|
do_install() {
|
|
vinstall build/libs/pdftk.jar 644 /usr/lib/pdftk
|
|
vman pdftk.1
|
|
vbin "${FILESDIR}"/pdftk
|
|
}
|
|
|
|
pdftk_package() {
|
|
build_style=meta
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" (transitional dummy package)"
|
|
}
|