2011-10-13 23:26:18 +00:00
|
|
|
# Template file for 'oracle-jre'
|
|
|
|
pkgname=jre
|
2011-11-08 10:56:17 +00:00
|
|
|
nonfree=yes
|
2012-04-09 21:55:11 +00:00
|
|
|
_extraversion=1.7.0_03
|
|
|
|
version=7u3
|
2011-10-22 11:12:21 +00:00
|
|
|
|
2011-11-08 10:56:17 +00:00
|
|
|
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
|
2012-04-09 21:55:11 +00:00
|
|
|
distfiles="http://uni-smr.ac.ru/archive/dev/java/JRE/oracle/7/jre-${version}-linux-x64.tar.gz"
|
|
|
|
# distfiles="http://download.oracle.com/otn-pub/java/jdk/${version}/jre-${version}-linux-x64.tar.gz"
|
2012-05-23 10:28:33 +00:00
|
|
|
checksum=eb06eab781be0c1dfaae2e5ef3afff5267e24e77f62401b09777673508b8d68c
|
2011-10-22 11:12:21 +00:00
|
|
|
else
|
2012-04-09 21:55:11 +00:00
|
|
|
distfiles="http://uni-smr.ac.ru/archive/dev/java/JRE/oracle/7/jre-${version}-linux-i586.tar.gz"
|
|
|
|
# distfiles="http://download.oracle.com/otn-pub/java/jdk/${version}/jre-${version}-linux-i586.tar.gz"
|
|
|
|
checksum=814bbbdb4c73b11c213de9543c821854b1ff18d2d8d45ae8d8cbeacab9b03c70
|
2011-10-22 11:12:21 +00:00
|
|
|
fi
|
|
|
|
|
2012-05-23 16:26:56 +00:00
|
|
|
makedepends="libXrender-devel libXtst-devel alsa-lib-devel"
|
|
|
|
fulldepends="hicolor-icon-theme desktop-file-utils xdg-utils shared-mime-info"
|
2012-06-03 07:08:53 +00:00
|
|
|
revision=1
|
2012-04-09 21:55:11 +00:00
|
|
|
short_desc="Oracle's Java Runtime Environment (JRE) - Version 7, Update 3"
|
2011-10-23 04:15:48 +00:00
|
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
2011-10-13 23:26:18 +00:00
|
|
|
homepage="http://www.oracle.com/technetwork/java/javase/downloads/index.html"
|
|
|
|
license="oracle"
|
|
|
|
long_desc="
|
2012-04-09 21:55:11 +00:00
|
|
|
Oracle Java SE 7, Update 3 - Runtime Environment (JRE) only:
|
2011-10-13 23:26:18 +00:00
|
|
|
|
|
|
|
This release includes new features such as small language changes for
|
|
|
|
improved developer productivity, a new Filesystem API, support for
|
|
|
|
asynchronous I/O, a new fork/join framework for multicore performance,
|
|
|
|
improved support for dynamic and script languages, updates to security,
|
|
|
|
internationalization and web standards and much more."
|
|
|
|
|
2011-10-14 05:57:28 +00:00
|
|
|
gtk_iconcache_dirs="
|
|
|
|
/usr/share/icons/hicolor
|
|
|
|
/usr/share/icons/HighContrast
|
|
|
|
/usr/share/icons/LowContrast"
|
|
|
|
|
|
|
|
|
2011-10-13 23:26:18 +00:00
|
|
|
|
|
|
|
wrksrc=jre${_extraversion}
|
|
|
|
|
|
|
|
do_install()
|
|
|
|
{
|
|
|
|
# Install desktop related items
|
|
|
|
vmkdir usr/share
|
2011-10-14 06:12:28 +00:00
|
|
|
vcopy lib/desktop/icons usr/share
|
|
|
|
vcopy lib/desktop/applications usr/share
|
|
|
|
vcopy lib/desktop/mime usr/share
|
|
|
|
vcopy lib/locale usr/share
|
|
|
|
vcopy man usr/share
|
2011-10-14 07:59:16 +00:00
|
|
|
rm -rf ${DESTDIR}/usr/share/man/ja
|
2011-10-13 23:26:18 +00:00
|
|
|
|
|
|
|
# Install license(s)
|
|
|
|
vmkdir usr/share/licenses/jre
|
2011-10-14 06:12:28 +00:00
|
|
|
vcopy COPYRIGHT usr/share/licenses/jre
|
|
|
|
vcopy LICENSE usr/share/licenses/jre
|
|
|
|
vcopy THIRDPARTYLICENSEREADME.txt usr/share/licenses/jre
|
2011-10-13 23:26:18 +00:00
|
|
|
|
|
|
|
# Fix system prefs folder FS#18872
|
|
|
|
vmkdir etc/.java/.systemPrefs
|
|
|
|
|
|
|
|
# For system environment vars and desktop extra shortcut
|
2011-10-14 06:23:26 +00:00
|
|
|
vinstall ${FILESDIR}/jre.sh 644 etc/profile.d
|
|
|
|
vinstall ${FILESDIR}/java-policy-settings.desktop 644 usr/share/applications
|
2011-10-13 23:26:18 +00:00
|
|
|
|
|
|
|
# Install JRE
|
|
|
|
vmkdir opt/java/jre
|
2011-10-14 06:12:28 +00:00
|
|
|
vcopy bin opt/java/jre
|
|
|
|
vcopy lib opt/java/jre
|
|
|
|
vcopy release opt/java/jre
|
|
|
|
vcopy Welcome.html opt/java/jre
|
2011-10-13 23:26:18 +00:00
|
|
|
|
2011-10-14 07:59:16 +00:00
|
|
|
rm -rf ${DESTDIR}/opt/java/jre/lib/desktop
|
|
|
|
rm -rf ${DESTDIR}/opt/java/jre/lib/locale
|
|
|
|
|
|
|
|
# Install mozilla compatible plugin.
|
|
|
|
vmkdir usr/lib/mozilla/plugins
|
2011-10-22 11:29:53 +00:00
|
|
|
|
|
|
|
|
2011-11-08 10:56:17 +00:00
|
|
|
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
|
2011-10-22 11:29:53 +00:00
|
|
|
_arch=amd64
|
|
|
|
else
|
|
|
|
_arch=i386
|
|
|
|
fi
|
|
|
|
|
2011-10-14 07:59:16 +00:00
|
|
|
cd ${DESTDIR}/usr/lib/mozilla/plugins && \
|
2011-10-22 11:29:53 +00:00
|
|
|
ln -sf ../../../../opt/java/jre/lib/${_arch}/libnpjp2.so .
|
2011-10-14 05:57:28 +00:00
|
|
|
|
2011-10-14 06:12:28 +00:00
|
|
|
# linker's config
|
|
|
|
vmkdir etc/ld.so.conf.d
|
2011-10-22 11:29:53 +00:00
|
|
|
echo "/opt/java/jre/lib/${_arch}" > \
|
2011-10-14 06:12:28 +00:00
|
|
|
${DESTDIR}/etc/ld.so.conf.d/${pkgname}.conf
|
2011-10-13 23:26:18 +00:00
|
|
|
}
|