2011-10-13 23:26:18 +00:00
|
|
|
# Template file for 'oracle-jre'
|
|
|
|
pkgname=jre
|
2014-01-05 08:59:10 +00:00
|
|
|
_extraversion=1.7.0_45
|
|
|
|
version=7u45
|
2013-01-04 15:24:23 +00:00
|
|
|
revision=1
|
|
|
|
wrksrc="jre${_extraversion}"
|
2013-04-12 14:52:48 +00:00
|
|
|
if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
|
2014-01-05 08:59:10 +00:00
|
|
|
distfiles="http://uni-smr.ac.ru/archive/dev/java/JRE/7/jre-${version}-linux-x64.tar.gz"
|
|
|
|
checksum=e107d8ca8dcd570207b4eff793e7b83a1ff82f1ed4ea8a80d88f5edc000c74c7
|
2013-04-12 14:52:48 +00:00
|
|
|
elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
|
2014-01-05 08:59:10 +00:00
|
|
|
distfiles="http://uni-smr.ac.ru/archive/dev/java/JRE/7/jre-${version}-linux-i586.tar.gz"
|
|
|
|
checksum=c6cec1ce57bc9b8b425f26e4e57ccdffc9667e4daf8ddca0d695e2db108ab233
|
2011-10-22 11:12:21 +00:00
|
|
|
fi
|
2013-01-04 15:24:23 +00:00
|
|
|
short_desc="Oracle's Java Runtime Environment (JRE) - Version 7"
|
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"
|
2014-01-05 08:59:10 +00:00
|
|
|
|
2014-01-01 15:10:11 +00:00
|
|
|
nonfree=yes
|
2014-01-05 08:59:10 +00:00
|
|
|
only_for_archs="i686 x86_64"
|
2014-01-01 15:10:11 +00:00
|
|
|
depends="hicolor-icon-theme desktop-file-utils xdg-utils shared-mime-info"
|
2014-01-05 08:59:10 +00:00
|
|
|
provides="java-runtime-${version}_1"
|
2014-01-01 15:10:11 +00:00
|
|
|
replaces="java-runtime>=0"
|
2011-10-13 23:26:18 +00:00
|
|
|
|
2013-04-12 14:52:48 +00:00
|
|
|
do_install() {
|
2011-10-13 23:26:18 +00:00
|
|
|
# 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
|
|
|
|
|
|
|
# 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
|
2013-01-04 15:24:23 +00:00
|
|
|
vmkdir usr/share/java/jre
|
|
|
|
vcopy bin usr/share/java/jre
|
|
|
|
vcopy lib usr/share/java/jre
|
|
|
|
vcopy release usr/share/java/jre
|
|
|
|
vcopy Welcome.html usr/share/java/jre
|
|
|
|
|
|
|
|
rm -rf ${DESTDIR}/usr/share/java/jre/lib/desktop
|
|
|
|
rm -rf ${DESTDIR}/usr/share/java/jre/lib/locale
|
2011-10-13 23:26:18 +00:00
|
|
|
|
2011-10-14 07:59:16 +00:00
|
|
|
# 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
|
|
|
|
|
2013-01-04 15:30:01 +00:00
|
|
|
# Remove shlib linking to old ffmpeg libraries.
|
|
|
|
rm -f ${DESTDIR}/usr/share/java/jre/lib/${_arch}/fxavcodecplugin-52.so
|
|
|
|
|
|
|
|
|
2013-07-23 08:05:11 +00:00
|
|
|
cd ${DESTDIR}/usr/lib/mozilla/plugins
|
|
|
|
ln -sf ../../../share/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
|
2013-01-04 15:24:23 +00:00
|
|
|
echo "/usr/share/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
|
|
|
}
|