void-packages/srcpkgs/jre/template

79 lines
2.3 KiB
Plaintext
Raw Normal View History

2011-10-14 01:26:18 +02:00
# Template file for 'oracle-jre'
pkgname=jre
2013-01-04 16:24:23 +01:00
_extraversion=1.7.0_10
version=7u10
revision=1
wrksrc="jre${_extraversion}"
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
distfiles="http://uni-smr.ac.ru/archive/dev/java/JRE/oracle/7/jre-${version}-linux-x64.tar.gz"
2013-01-04 16:24:23 +01:00
checksum=a2a45566f4a87e70c0e13577d3bf2b7eeabcdda3279958a75ded1ece96e070d1
else
distfiles="http://uni-smr.ac.ru/archive/dev/java/JRE/oracle/7/jre-${version}-linux-i586.tar.gz"
2013-01-04 16:24:23 +01:00
checksum=0e91c275a87dc1ba049df3cfef16eb958199d80e55bea6a3555900d309615199
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"
2013-01-04 16:24:23 +01:00
nonfree=yes
nostrip=yes
depends="hicolor-icon-theme desktop-file-utils xdg-utils shared-mime-info"
provides="java-runtime-${version}"
replaces="java-runtime>=0"
2011-10-14 01:26:18 +02:00
do_install()
{
# Install desktop related items
vmkdir usr/share
2011-10-14 08:12:28 +02: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
rm -rf ${DESTDIR}/usr/share/man/ja
2011-10-14 01:26:18 +02:00
# Install license(s)
vmkdir usr/share/licenses/jre
2011-10-14 08:12:28 +02:00
vcopy COPYRIGHT usr/share/licenses/jre
vcopy LICENSE usr/share/licenses/jre
vcopy THIRDPARTYLICENSEREADME.txt usr/share/licenses/jre
2011-10-14 01:26:18 +02:00
# For system environment vars and desktop extra shortcut
vinstall ${FILESDIR}/jre.sh 644 etc/profile.d
vinstall ${FILESDIR}/java-policy-settings.desktop 644 usr/share/applications
2011-10-14 01:26:18 +02:00
# Install JRE
2013-01-04 16:24:23 +01: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-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.
rm -f ${DESTDIR}/usr/share/java/jre/lib/${_arch}/fxavcodecplugin-52.so
cd ${DESTDIR}/usr/lib/mozilla/plugins && \
2013-01-04 16:24:23 +01:00
ln -sf ../../../share/java/jre/lib/${_arch}/libnpjp2.so .
2011-10-14 08:12:28 +02:00
# linker's config
vmkdir etc/ld.so.conf.d
2013-01-04 16:24:23 +01:00
echo "/usr/share/java/jre/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
}