summaryrefslogtreecommitdiff
path: root/libre/java-common/PKGBUILD
blob: 8d29576e86ef0baf1f5fa70f75fac773553beb68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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"
}