# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=java-common
pkgver=0.5
pkgrel=0
pkgdesc="Java common (updates java links)"
url="https://git.alpinelinux.org/aports/"
arch="noarch"
options="!check"  # Symlinks only.
license="GPL-2.0-or-later"
triggers="java-common.trigger=/usr/lib/jvm"

package() {
	mkdir -p "$pkgdir"/usr/bin
	for exe in jaotc jar jarsigner java javac javadoc javap jcmd jdb jdeprscan jdeps jexec jexec-binfmt jfr jhsdb jimage jinfo jjs jlink jmap jmod jps jrunscript jshell jstack jstat jstatd keytool pack200 rmic rmid rmiregistry serialver unpack200; do
		ln -sf ../lib/jvm/default-jvm/bin/$exe "$pkgdir"/usr/bin
	done
}
