summaryrefslogtreecommitdiff
path: root/libre/java-common/PKGBUILD
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-10-13 00:57:40 -0200
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-10-13 00:57:40 -0200
commitf90b5da18e958f987c30494730d4b73af31a0388 (patch)
tree23c66872e2b26415970d0262075854db2d3d3745 /libre/java-common/PKGBUILD
parent39dc767bca041d1fefd7bf2c00909a45001ef772 (diff)
rename java-common to java-runtime-common and add bin links to package. be quieter (FS#41883 -> https://bugs.archlinux.org/task/41883) (FS#41901 -> https://bugs.archlinux.org/task/41901)
Diffstat (limited to 'libre/java-common/PKGBUILD')
-rw-r--r--libre/java-common/PKGBUILD43
1 files changed, 27 insertions, 16 deletions
diff --git a/libre/java-common/PKGBUILD b/libre/java-common/PKGBUILD
index 88d3f66a0..a20014359 100644
--- a/libre/java-common/PKGBUILD
+++ b/libre/java-common/PKGBUILD
@@ -1,30 +1,29 @@
# Maintainer (Arch): Guillaume ALAUX <guillaume@archlinux.org>
# Maintainer: André Silva <emulatorman@parabola.nu>
-pkgname=java-common
-pkgver=1
-pkgrel=8.parabola1
-pkgdesc='Common files for Java Environments (Parabola rebranded)'
+pkgname=java-runtime-common
+pkgbase=java-common
+pkgver=2
+pkgrel=1.parabola1
+pkgdesc='Common files for Java Runtime Environments (Parabola rebranded)'
arch=('any')
-url='parabolagnulinux.org'
+url='www.parabola.nu'
license=('GPL')
checkdepends=('wget')
+conflicts=('java-common')
+replaces=('java-common')
backup=(etc/profile.d/jre.sh
etc/profile.d/jre.csh)
-# TODO remove after a while
-replaces=('java-runtime-headless-meta' 'java-runtime-meta' 'java-environment-meta')
-install=install_java-common.sh
+install=install_java-runtime-common.sh
source=(profile_jre.csh
profile_jre.sh
bin_parabola-java
test_parabola-java
- bin_java-common-wrapper
https://shunit2.googlecode.com/files/shunit2-2.1.6.tgz)
-sha256sums=('f3b7eb6ffa8bbc454250bfc3723f3fbcd1e19e314832524d0dbe5244752d3883'
- '230214ef0d8cf8939abdcf0de01b763c76e9e711c46299b028c2c3c40930565e'
- '284d7d18c4847485eaec693645afb2c0ad4bb7a4d0d42315a78b9ee3bcadb9a8'
- 'e27e85eecbd8c8bd63738c1c332397d44cf44416d2ae9203945af1fc2a51dfed'
- '16a4fde19bd34210ff2d06480085f681b4e41e85ec89853e3cafaa8377bcedfb'
+sha256sums=('769f9d2e58388aafb83f6493b0aed0b851c43ec8ffc1c23241825347a4c413ec'
+ 'e80a98ee72d0b7cb9f4471590217be21281aa7029b55bd538e963812f1b820a7'
+ '103e0cbd0dd3b11376ba61e743f481f1a720c336f7b67d09a6b189f988e2fe6e'
+ '6e0f4173d4cfaad5ab0ed953fad770ee70b355349304c3bd34043edf0b6a7ab5'
'65a313a76fd5cc1c58c9e19fbc80fc0e418a4cbfbd46d54b35ed5b6e0025d4ee')
check() {
@@ -32,11 +31,23 @@ check() {
./test_parabola-java
}
-build() {
+package() {
cd "${srcdir}"
+ install -d -m 755 "${pkgdir}/usr/lib/jvm/"
+ ln -s /dev/null "${pkgdir}/usr/lib/jvm/default"
+ ln -s /dev/null "${pkgdir}/usr/lib/jvm/default-runtime"
+
install -D -m 644 profile_jre.sh "${pkgdir}/etc/profile.d/jre.sh"
install -D -m 644 profile_jre.csh "${pkgdir}/etc/profile.d/jre.csh"
- install -D -m 755 bin_java-common-wrapper "${pkgdir}/usr/lib/java-common-wrapper"
install -D -m 755 bin_parabola-java "${pkgdir}/usr/bin/parabola-java"
+
+ install -d -m 755 "${pkgdir}/usr/bin/"
+ # Official list of binaries that Java headless runtime packages MUST provide
+ # This list is based on Parabola' default Java implementation: "OpenJDK 7 Icedtea"
+ for b in \
+ java keytool orbd pack200 policytool rmid rmiregistry servertool tnameserv unpack200;
+ do
+ ln -s /usr/lib/jvm/default-runtime/bin/${b} "${pkgdir}/usr/bin/${b}"
+ done
}