summaryrefslogtreecommitdiff
path: root/user/java-common
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-06-02 07:40:40 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-06-02 07:40:40 +0000
commit708fb3dfe19d6ef541dee2df14bed1620f78bdad (patch)
tree9f815aa0af81dd3b0e574238c7c7f65ce775c25c /user/java-common
parent08cd8c41e18ebded1a5f6bf92e3bac3d3afa0565 (diff)
downloadpackages-708fb3dfe19d6ef541dee2df14bed1620f78bdad.tar.gz
packages-708fb3dfe19d6ef541dee2df14bed1620f78bdad.tar.bz2
packages-708fb3dfe19d6ef541dee2df14bed1620f78bdad.tar.xz
packages-708fb3dfe19d6ef541dee2df14bed1620f78bdad.zip
user/java-common: set JAVA_HOME
Diffstat (limited to 'user/java-common')
-rw-r--r--user/java-common/APKBUILD7
-rw-r--r--user/java-common/java.profd2
2 files changed, 7 insertions, 2 deletions
diff --git a/user/java-common/APKBUILD b/user/java-common/APKBUILD
index 12259b209..3ebb6a864 100644
--- a/user/java-common/APKBUILD
+++ b/user/java-common/APKBUILD
@@ -1,6 +1,6 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=java-common
-pkgver=6
+pkgver=7
pkgrel=0
pkgdesc="Default Java runtime binary symlinks"
url=" "
@@ -10,7 +10,7 @@ license="Public-Domain"
depends=""
makedepends=""
subpackages=""
-source=""
+source="java.profd"
triggers="java-common.trigger=/usr/lib/jvm"
package() {
@@ -19,4 +19,7 @@ package() {
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
+
+ install -D -m755 "$srcdir"/java.profd "$pkgdir"/etc/profile.d/java.sh
}
+sha512sums="4c535555a89609988fbd379d4ef7c72d04eb8b88aed3c999a65e957196196c14733377b24f98b1ee0ae83f0cd43f55ab626ab073c1b30f478fb514bfc71cf641 java.profd"
diff --git a/user/java-common/java.profd b/user/java-common/java.profd
new file mode 100644
index 000000000..cf97cc5f9
--- /dev/null
+++ b/user/java-common/java.profd
@@ -0,0 +1,2 @@
+#!/bin/sh
+export JAVA_HOME=/usr/lib/jvm/default-jvm