2011-10-14 01:26:18 +02:00
|
|
|
# Template file for 'oracle-jre'
|
|
|
|
pkgname=jre
|
2014-02-28 17:53:41 +01:00
|
|
|
_extraversion=1.7.0_51
|
|
|
|
version=7u51
|
|
|
|
revision=1
|
2014-02-15 03:46:52 +01:00
|
|
|
wrksrc="jdk${_extraversion}"
|
2013-04-12 16:52:48 +02:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
2014-02-15 03:46:52 +01:00
|
|
|
distfiles="http://ghaffarian.net/downloads/Java/JDK/jdk-${version}-linux-x64.tar.gz"
|
2014-02-28 17:53:41 +01:00
|
|
|
checksum=77367c3ef36e0930bf3089fb41824f4b8cf55dcc8f43cce0868f7687a474f55c
|
2013-04-12 16:52:48 +02:00
|
|
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
2014-02-15 03:46:52 +01:00
|
|
|
distfiles="http://ghaffarian.net/downloads/Java/JDK/jdk-${version}-linux-i586.tar.gz"
|
2014-02-28 17:53:41 +01:00
|
|
|
checksum=b3a2965e44446e476f4e27f7ea13a503a91403ac80bcd71693ad2f84baff42cf
|
2011-10-22 13:12:21 +02:00
|
|
|
fi
|
2013-01-04 16:24:23 +01:00
|
|
|
short_desc="Oracle's Java Runtime Environment (JRE) - Version 7"
|
2011-10-23 06:15:48 +02:00
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
2011-10-14 01:26:18 +02:00
|
|
|
homepage="http://www.oracle.com/technetwork/java/javase/downloads/index.html"
|
|
|
|
license="oracle"
|
2014-01-05 09:59:10 +01:00
|
|
|
|
2014-01-01 16:10:11 +01:00
|
|
|
nonfree=yes
|
2014-01-05 09:59:10 +01:00
|
|
|
only_for_archs="i686 x86_64"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="hicolor-icon-theme desktop-file-utils xdg-utils shared-mime-info"
|
2014-01-05 09:59:10 +01:00
|
|
|
provides="java-runtime-${version}_1"
|
2014-01-01 16:10:11 +01:00
|
|
|
replaces="java-runtime>=0"
|
2011-10-14 01:26:18 +02:00
|
|
|
|
2013-04-12 16:52:48 +02:00
|
|
|
do_install() {
|
2011-10-14 01:26:18 +02:00
|
|
|
# Install desktop related items
|
|
|
|
vmkdir usr/share
|
2014-02-15 03:46:52 +01:00
|
|
|
vcopy jre/lib/desktop/icons usr/share
|
|
|
|
vcopy jre/lib/desktop/applications usr/share
|
|
|
|
vcopy jre/lib/desktop/mime usr/share
|
|
|
|
vcopy jre/lib/locale usr/share
|
2011-10-14 08:12:28 +02:00
|
|
|
vcopy man usr/share
|
2011-10-14 09:59:16 +02:00
|
|
|
rm -rf ${DESTDIR}/usr/share/man/ja
|
2011-10-14 01:26:18 +02:00
|
|
|
|
|
|
|
# Install license(s)
|
2014-02-15 03:46:52 +01:00
|
|
|
vmkdir usr/share/licenses/java
|
|
|
|
vcopy COPYRIGHT usr/share/licenses/java
|
|
|
|
vcopy LICENSE usr/share/licenses/java
|
|
|
|
vcopy THIRDPARTYLICENSEREADME.txt usr/share/licenses/java
|
|
|
|
vcopy THIRDPARTYLICENSEREADME-JAVAFX.txt usr/share/licenses/java
|
2011-10-14 01:26:18 +02:00
|
|
|
|
|
|
|
# For system environment vars and desktop extra shortcut
|
2014-02-15 03:46:52 +01:00
|
|
|
vinstall ${FILESDIR}/java.sh 644 etc/profile.d
|
2011-10-14 08:23:26 +02:00
|
|
|
vinstall ${FILESDIR}/java-policy-settings.desktop 644 usr/share/applications
|
2011-10-14 01:26:18 +02:00
|
|
|
|
2014-02-15 03:46:52 +01:00
|
|
|
vmkdir usr/share/java
|
|
|
|
vmkdir usr/share/java/bin
|
|
|
|
vmkdir usr/share/java/lib
|
|
|
|
|
|
|
|
# Install JDK
|
|
|
|
vcopy "bin/*" "usr/share/java/bin"
|
|
|
|
vcopy "lib/*" "usr/share/java/lib"
|
|
|
|
vcopy README.html usr/share/java
|
2013-01-04 16:24:23 +01:00
|
|
|
|
2014-02-15 03:46:52 +01:00
|
|
|
# Install JRE
|
|
|
|
vcopy "jre/bin/*" "usr/share/java/bin"
|
|
|
|
vcopy "jre/lib/*" "usr/share/java/lib"
|
|
|
|
vcopy jre/Welcome.html usr/share/java
|
|
|
|
vcopy release usr/share/java
|
|
|
|
|
|
|
|
rm -rf ${DESTDIR}/usr/share/java/lib/desktop
|
|
|
|
rm -rf ${DESTDIR}/usr/share/java/lib/locale
|
2011-10-14 01:26:18 +02:00
|
|
|
|
2011-10-14 09:59:16 +02:00
|
|
|
# Install mozilla compatible plugin.
|
|
|
|
vmkdir usr/lib/mozilla/plugins
|
2011-10-22 13:29:53 +02:00
|
|
|
|
2011-11-08 11:56:17 +01:00
|
|
|
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
|
2011-10-22 13:29:53 +02:00
|
|
|
_arch=amd64
|
|
|
|
else
|
|
|
|
_arch=i386
|
|
|
|
fi
|
|
|
|
|
2013-01-04 16:30:01 +01:00
|
|
|
# Remove shlib linking to old ffmpeg libraries.
|
2014-02-15 03:46:52 +01:00
|
|
|
rm -f ${DESTDIR}/usr/share/java/lib/${_arch}/fxavcodecplugin-52.so
|
2013-01-04 16:30:01 +01:00
|
|
|
|
|
|
|
|
2013-07-23 10:05:11 +02:00
|
|
|
cd ${DESTDIR}/usr/lib/mozilla/plugins
|
2014-02-15 03:46:52 +01:00
|
|
|
ln -sf ../../../share/java/lib/${_arch}/libnpjp2.so .
|
2011-10-14 07:57:28 +02:00
|
|
|
|
2011-10-14 08:12:28 +02:00
|
|
|
# linker's config
|
|
|
|
vmkdir etc/ld.so.conf.d
|
2014-02-15 03:46:52 +01:00
|
|
|
echo "/usr/share/java/lib/${_arch}" > \
|
2011-10-14 08:12:28 +02:00
|
|
|
${DESTDIR}/etc/ld.so.conf.d/${pkgname}.conf
|
2011-10-14 01:26:18 +02:00
|
|
|
}
|
2014-02-15 03:46:52 +01:00
|
|
|
|
|
|
|
jdk_package() {
|
|
|
|
short_desc="Oracle's Java Development Kit (JDK) - Version 7"
|
|
|
|
depends="jre>=${version}_${revision}"
|
2014-02-15 04:00:12 +01:00
|
|
|
nonfree=yes
|
2014-02-15 03:46:52 +01:00
|
|
|
pkg_install() {
|
|
|
|
vmove "usr/share/java/README.html"
|
|
|
|
vmove "usr/share/licenses/java/THIRDPARTYLICENSEREADME-JAVAFX.txt"
|
|
|
|
|
|
|
|
vmove "usr/share/java/lib/ant-javafx.jar"
|
|
|
|
vmove "usr/share/java/lib/ct.sym"
|
|
|
|
vmove "usr/share/java/lib/dt.jar"
|
|
|
|
vmove "usr/share/java/lib/ir.idl"
|
|
|
|
vmove "usr/share/java/lib/javafx-doclet.jar"
|
|
|
|
vmove "usr/share/java/lib/javafx-mx.jar"
|
|
|
|
vmove "usr/share/java/lib/jconsole.jar"
|
|
|
|
vmove "usr/share/java/lib/missioncontrol"
|
|
|
|
vmove "usr/share/java/lib/orb.idl"
|
|
|
|
vmove "usr/share/java/lib/sa-jdi.jar"
|
|
|
|
vmove "usr/share/java/lib/tools.jar"
|
|
|
|
vmove "usr/share/java/lib/visualvm"
|
|
|
|
|
|
|
|
vmove "usr/share/java/bin/appletviewer"
|
|
|
|
vmove "usr/share/java/bin/apt"
|
|
|
|
vmove "usr/share/java/bin/extcheck"
|
|
|
|
vmove "usr/share/java/bin/idlj"
|
|
|
|
vmove "usr/share/java/bin/jar"
|
|
|
|
vmove "usr/share/java/bin/jarsigner"
|
|
|
|
vmove "usr/share/java/bin/java-rmi.cgi"
|
|
|
|
vmove "usr/share/java/bin/javac"
|
|
|
|
vmove "usr/share/java/bin/javadoc"
|
|
|
|
vmove "usr/share/java/bin/javafxpackager"
|
|
|
|
vmove "usr/share/java/bin/javah"
|
|
|
|
vmove "usr/share/java/bin/javap"
|
|
|
|
vmove "usr/share/java/bin/jcmd"
|
|
|
|
vmove "usr/share/java/bin/jconsole"
|
|
|
|
vmove "usr/share/java/bin/jdb"
|
|
|
|
vmove "usr/share/java/bin/jhat"
|
|
|
|
vmove "usr/share/java/bin/jinfo"
|
|
|
|
vmove "usr/share/java/bin/jmap"
|
|
|
|
vmove "usr/share/java/bin/jmc"
|
|
|
|
vmove "usr/share/java/bin/jmc.ini"
|
|
|
|
vmove "usr/share/java/bin/jps"
|
|
|
|
vmove "usr/share/java/bin/jrunscript"
|
|
|
|
vmove "usr/share/java/bin/jsadebugd"
|
|
|
|
vmove "usr/share/java/bin/jstack"
|
|
|
|
vmove "usr/share/java/bin/jstat"
|
|
|
|
vmove "usr/share/java/bin/jstatd"
|
|
|
|
vmove "usr/share/java/bin/jvisualvm"
|
|
|
|
vmove "usr/share/java/bin/native2ascii"
|
|
|
|
vmove "usr/share/java/bin/rmic"
|
|
|
|
vmove "usr/share/java/bin/schemagen"
|
|
|
|
vmove "usr/share/java/bin/serialver"
|
|
|
|
vmove "usr/share/java/bin/wsgen"
|
|
|
|
vmove "usr/share/java/bin/wsimport"
|
|
|
|
vmove "usr/share/java/bin/xjc"
|
|
|
|
}
|
|
|
|
}
|