void-packages/srcpkgs/jre/template

143 lines
4.6 KiB
Plaintext
Raw Normal View History

2011-10-14 01:26:18 +02:00
# Template file for 'oracle-jre'
pkgname=jre
2014-01-05 09:59:10 +01:00
_extraversion=1.7.0_45
version=7u45
2014-02-15 03:46:52 +01:00
revision=2
wrksrc="jdk${_extraversion}"
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"
checksum=f2eae4d81c69dfa79d02466d1cb34db2b628815731ffc36e9b98f96f46f94b1a
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"
checksum=4acbdc25d0acad7c765b65c13cda44150200c33507bfe8b5ce6cabcab3e016e0
fi
2013-01-04 16:24:23 +01:00
short_desc="Oracle's Java Runtime Environment (JRE) - Version 7"
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
nonfree=yes
2014-01-05 09:59:10 +01:00
only_for_archs="i686 x86_64"
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"
replaces="java-runtime>=0"
2011-10-14 01:26:18 +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
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
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
# Install mozilla compatible plugin.
vmkdir usr/lib/mozilla/plugins
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
_arch=amd64
else
_arch=i386
fi
# 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-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 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"
}
}