mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-02-12 04:41:03 +00:00
- Fixes https://github.com/termux/termux-packages/issues/25027 - JDK 21 has been released for a year, so theoretically, all packages should be ready now, but it will be necessary to test each package's basic functionality with `openjdk-21` installed, to make sure that they are compatible. - Now that https://github.com/termux/termux-packages/pull/25214 has been merged, it should be easier for termux-apt users whose `java` command is set to `openjdk-17`, to get it automatically updated to `openjdk-21` without necessarily having to uninstall `openjdk-17`.
30 lines
1.0 KiB
Bash
30 lines
1.0 KiB
Bash
TERMUX_PKG_HOMEPAGE=https://gitlab.com/pdftk-java/pdftk
|
|
TERMUX_PKG_DESCRIPTION="A simple tool for doing everyday things with PDF documents"
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
|
TERMUX_PKG_VERSION="3.3.3"
|
|
TERMUX_PKG_REVISION=3
|
|
TERMUX_PKG_SRCURL=https://gitlab.com/pdftk-java/pdftk/-/archive/v${TERMUX_PKG_VERSION}/pdftk-v${TERMUX_PKG_VERSION}.tar.bz2
|
|
TERMUX_PKG_SHA256=c144e0dd388db2f5e8e0b412c0d9be6c54e4db99a4575b6058a209f3603a333d
|
|
TERMUX_PKG_DEPENDS="libbcprov-java, libcommons-lang3-java, openjdk-21"
|
|
TERMUX_PKG_BUILD_DEPENDS="ant"
|
|
TERMUX_PKG_PLATFORM_INDEPENDENT=true
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
TERMUX_PKG_AUTO_UPDATE=true
|
|
|
|
termux_step_pre_configure() {
|
|
mkdir -p lib
|
|
ln -sf $TERMUX_PREFIX/share/java/commons-lang3.jar lib/
|
|
ln -sf $TERMUX_PREFIX/share/java/bcprov.jar lib/
|
|
}
|
|
|
|
termux_step_make() {
|
|
sh $TERMUX_PREFIX/bin/ant jar
|
|
}
|
|
|
|
termux_step_make_install() {
|
|
mkdir -p $TERMUX_PREFIX/share/java
|
|
install -Dm600 build/jar/pdftk.jar $TERMUX_PREFIX/share/java/
|
|
install -Dm700 pdftk $TERMUX_PREFIX/bin/
|
|
}
|