void-packages/srcpkgs/bc-java/template

25 lines
829 B
Bash
Raw Normal View History

2023-11-15 18:28:14 +01:00
# Template file for 'bc-java'
pkgname=bc-java
2023-11-18 06:14:46 +01:00
version=1.77
2023-11-15 18:28:14 +01:00
revision=1
hostmakedepends="apache-ant openjdk17"
depends="virtual?java-runtime"
short_desc="Bouncy Castle Java cryptography APIs"
maintainer="classabbyamp <void@placeviolette.net>"
license="MIT"
homepage="https://www.bouncycastle.org/java.html"
2023-11-18 06:14:46 +01:00
changelog="https://www.bouncycastle.org/releasenotes.html"
2023-11-15 18:28:14 +01:00
distfiles="https://github.com/bcgit/bc-java/archive/refs/tags/r${version/./rv}.tar.gz"
2023-11-18 06:14:46 +01:00
checksum=09659ee93ba2143d0db9107ddf515142f1d90e03d82d3e46a16e21e9eafeba84
2023-11-15 18:28:14 +01:00
do_build() {
. /etc/profile.d/jdk.sh
2023-11-15 18:28:14 +01:00
ant -f ant/jdk18+.xml clean build-provider build
}
do_install() {
vinstall build/artifacts/jdk1.8/jars/bcprov-jdk18on-${version/./}.jar 644 /usr/lib/bc-java
ln -s bcprov-jdk18on-${version/./}.jar "${DESTDIR}"/usr/lib/bc-java/bcprov.jar
vlicense LICENSE.html
}