Commit a31fe528 authored by Timo Teräs's avatar Timo Teräs

testing/java-common: new aport

a meta package that setups links for default java virtual machine
parent 8e2d6ac6
# Contributor: Timo Teras <timo.teras@iki.fi>
# Maintainer: Timo Teras <timo.teras@iki.fi>
pkgname=java-common
pkgver=0.1
pkgrel=0
pkgdesc="Java common (updates java links)"
url="http://git.alpinelinux.org/aports.git"
arch="noarch"
license="GPL2"
depends=
makedepends=""
install=""
subpackages=""
source=""
triggers="java-common.trigger:/usr/lib/jvm"
package() {
mkdir -p "$pkgdir"/usr/bin
ln -sf ../lib/jvm/default-jvm/jre/bin/java "$pkgdir"/usr/bin
ln -sf ../lib/jvm/default-jvm/jre/bin/rmiregistry "$pkgdir"/usr/bin
ln -sf ../lib/jvm/default-jvm/jre/bin/keytool "$pkgdir"/usr/bin
ln -sf ../lib/jvm/default-jvm/bin/appletviewer "$pkgdir"/usr/bin
}
#!/bin/sh
if [ -x /usr/lib/jvm/forced-jvm ]; then
ln -sfn forced-jvm default-jvm
exit 0
fi
cd /usr/lib/jvm
LATEST=`ls -d java-* | sort -r | head -1`
if [ "$LATEST" ]; then
ln -sfn $LATEST default-jvm
fi
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment