void-packages/srcpkgs/bc-java/template

25 lines
829 B
Bash

# Template file for 'bc-java'
pkgname=bc-java
version=1.78
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"
changelog="https://www.bouncycastle.org/releasenotes.html"
distfiles="https://github.com/bcgit/bc-java/archive/refs/tags/r${version/./rv}.tar.gz"
checksum=6eb33f05248aa74a7927435d364c5fbeb3f3885e476f36e1ee36ff58f4db49e4
do_build() {
. /etc/profile.d/jdk.sh
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
}