blob: b348f0d48342c98a2460ce026e7433c8d6d108e1 (
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
# $Id: PKGBUILD 22893 2010-07-31 09:47:07Z ibiru $
# Contributor: Geoffroy Carrier <geoffroy.carrier@aur.archlinux.org>
# Contributor: Jason Chu <jason@archlinux.org>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Guillaume ALAUX <Guillaume at alaux dot net>
pkgname=('jre' 'jdk')
pkgbase=java-sun
pkgver=6u21
pkgrel=1
pkgdesc="Sun/Oracle's implementation of tha Java 6 specification"
arch=('i686' 'x86_64')
[ "$CARCH" = "i686" ] && _arch=i586
[ "$CARCH" = "x86_64" ] && _arch=amd64
url="http://java.sun.com"
license=('custom')
makedepends=('java-runtime')
source=(http://download.java.net/dlj/binaries/jdk-${pkgver}-dlj-linux-${_arch}.bin
https://jdk-distros.dev.java.net/source/browse/*checkout*/jdk-distros/trunk/utils/construct.sh
jdk.profile
java-control-panel.desktop
java-monitoring-and-management-console.desktop
java-policy-settings.desktop
java-visualvm.desktop
java-web-start.desktop
jre.profile)
[ "$CARCH" = "i686" ] && md5sums=('b3fbbe55bafedb3f8f93e91d4e809390'
'94065b612df0046d9ae758943f9f6a75'
'7aaac9ec3e440b92361c6561ac00424a'
'e4d814c0f310d77ed6990c731bccd0fb'
'4bc2b0be93f76ed07b471e3c89eb5a8a'
'8e3cec7ab641ec449cabd068be583f5c'
'9ba148ebabce8ed3351b813a9a66b6e5'
'568451cf45fc8c7adb83a222a61ca2c6'
'50b4f5ac4129097461d246645d73a622')
[ "$CARCH" = "x86_64" ] && md5sums=('7961051f95c014a9b94ffe3e95ea66e6'
'94065b612df0046d9ae758943f9f6a75'
'7aaac9ec3e440b92361c6561ac00424a'
'e4d814c0f310d77ed6990c731bccd0fb'
'4bc2b0be93f76ed07b471e3c89eb5a8a'
'8e3cec7ab641ec449cabd068be583f5c'
'9ba148ebabce8ed3351b813a9a66b6e5'
'568451cf45fc8c7adb83a222a61ca2c6'
'50b4f5ac4129097461d246645d73a622')
build() {
cd ${srcdir}
mkdir unbundle-jdk
cd unbundle-jdk
sh ../jdk-${pkgver}-dlj-linux-$_arch.bin --accept-license
cd ..
sh construct.sh unbundle-jdk linux-jdk linux-jre
}
package_jre() {
pkgdesc="Sun/Oracle's Java Runtime Environment"
depends=('glibc' 'libxtst')
provides=('j2re' 'java-runtime=6')
conflicts=('j2re' 'java-runtime')
replaces=('j2re')
install='jre.install'
cd ${srcdir}
mkdir -p ${pkgdir}/opt/java
cp -R linux-jdk/jre ${pkgdir}/opt/java
install -Dm755 ${srcdir}/jre.profile ${pkgdir}/etc/profile.d/jre.sh
mkdir -p ${pkgdir}/usr/lib/mozilla/plugins
if [ "$CARCH" = "i686" ]; then
ln -s /opt/java/jre/lib/i386/libnpjp2.so ${pkgdir}/usr/lib/mozilla/plugins
else ln -s /opt/java/jre/lib/amd64/libnpjp2.so ${pkgdir}/usr/lib/mozilla/plugins
fi
mkdir -p ${pkgdir}/usr/share/licenses/jre
cp ${pkgdir}/opt/java/jre/COPYRIGHT ${pkgdir}/usr/share/licenses/jre
cp ${pkgdir}/opt/java/jre/LICENSE ${pkgdir}/usr/share/licenses/jre
cp ${pkgdir}/opt/java/jre/THIRDPARTYLICENSEREADME.txt ${pkgdir}/usr/share/licenses/jre
# Fix system prefs folder (FS#18872)
install -dm755 ${pkgdir}/etc/.java/.systemPrefs
}
package_jdk() {
pkgdesc="Sun/Oracle's Java Development Kit"
depends=('glibc' 'jre')
provides=('java-environment=6' 'j2sdk')
conflicts=('java-environment' 'j2sdk')
replaces=('j2sdk')
install='jdk.install'
cd ${srcdir}
#copy icon
install -Dm644 ${srcdir}/linux-jdk/jre/lib/desktop/icons/hicolor/48x48/apps/sun-java.png \
${pkgdir}/usr/share/pixmaps/java.png
rm -rf linux-jdk/jre
mkdir -p ${pkgdir}/opt
mv linux-jdk ${pkgdir}/opt/java
install -D -m755 ${srcdir}/jdk.profile ${pkgdir}/etc/profile.d/jdk.sh
mkdir -p ${pkgdir}/usr/share/licenses/jdk
cp ${pkgdir}/opt/java/COPYRIGHT ${pkgdir}/usr/share/licenses/jdk
cp ${pkgdir}/opt/java/LICENSE ${pkgdir}/usr/share/licenses/jdk
cp ${pkgdir}/opt/java/THIRDPARTYLICENSEREADME.txt ${pkgdir}/usr/share/licenses/jdk
#desktop entries
install -Dm644 ${srcdir}/java-control-panel.desktop \
${pkgdir}/usr/share/applications/java-control-panel.desktop
install -Dm644 ${srcdir}/java-monitoring-and-management-console.desktop \
${pkgdir}/usr/share/applications/java-monitoring-and-management-console.desktop
install -Dm644 ${srcdir}/java-policy-settings.desktop \
${pkgdir}/usr/share/applications/java-policy-settings.desktop
install -Dm644 ${srcdir}/java-visualvm.desktop \
${pkgdir}/usr/share/applications/java-visualvm.desktop
install -Dm644 ${srcdir}/java-web-start.desktop \
${pkgdir}/usr/share/applications/java-web-start.desktop
}
|