summaryrefslogtreecommitdiff
path: root/libre/java-common/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/java-common/PKGBUILD')
-rw-r--r--libre/java-common/PKGBUILD42
1 files changed, 42 insertions, 0 deletions
diff --git a/libre/java-common/PKGBUILD b/libre/java-common/PKGBUILD
new file mode 100644
index 000000000..8d29576e8
--- /dev/null
+++ b/libre/java-common/PKGBUILD
@@ -0,0 +1,42 @@
+# Maintainer (Arch): Guillaume ALAUX <guillaume@archlinux.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+pkgname=java-common
+pkgver=1
+pkgrel=7.parabola1
+pkgdesc='Common files for Java Environments (Parabola rebranded)'
+arch=('any')
+url='parabolagnulinux.org'
+license=('GPL')
+checkdepends=('wget')
+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
+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'
+ '65a313a76fd5cc1c58c9e19fbc80fc0e418a4cbfbd46d54b35ed5b6e0025d4ee')
+
+check() {
+ cd "${srcdir}"
+ ./test_parabola-java
+}
+
+build() {
+ cd "${srcdir}"
+
+ 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"
+}