5a2cc5b5bd
- The chroot target now execs masterdir/bin/xbps-shell to set up correct envvars. - 2 pkgs are now in nonfree repo: adobe-flash-plugin and jre. - Renamed some vars in xbps-src to be in uppercase, notably XBPS_MACHINE. - make-repoidx target now creates the index for all "known" directories specified via XBPS_PACKAGESDIR: XBPS_MACHINE, noarch, and nonfree/XBPS_MACHINE.
106 lines
3.1 KiB
Text
106 lines
3.1 KiB
Text
# Template file for 'oracle-jre'
|
|
pkgname=jre
|
|
nonfree=yes
|
|
_extraversion=1.7.0
|
|
version=7
|
|
revision=4
|
|
|
|
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
|
|
distfiles="http://download.oracle.com/otn-pub/java/jdk/${version}/jre-${version}-linux-x64.tar.gz"
|
|
checksum=d829890d46295ab0cbfcbeb5c68ac7c90a5021689f7503c00b8bcf4bf9ea2f8d
|
|
else
|
|
distfiles="http://download.oracle.com/otn-pub/java/jdk/${version}/jre-${version}-linux-i586.tar.gz"
|
|
checksum=d0b7f2c48759462c07a96e0b28f2e937b3ccef7baf1c3c53dc3f28a840b7f1b6
|
|
fi
|
|
|
|
short_desc="Oracle's Java Runtime Environment (JRE) - Version 7"
|
|
maintainer="davehome <davehome@redthumb.info.tm>"
|
|
homepage="http://www.oracle.com/technetwork/java/javase/downloads/index.html"
|
|
license="oracle"
|
|
long_desc="
|
|
Oracle Java SE 7 - Runtime Environment (JRE) only:
|
|
|
|
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."
|
|
|
|
gtk_iconcache_dirs="
|
|
/usr/share/icons/hicolor
|
|
/usr/share/icons/HighContrast
|
|
/usr/share/icons/LowContrast"
|
|
|
|
Add_dependency run glibc
|
|
Add_dependency run libgcc
|
|
Add_dependency run libX11
|
|
Add_dependency run libXext
|
|
Add_dependency run libXrender
|
|
Add_dependency run libXtst
|
|
Add_dependency run libXi
|
|
Add_dependency run alsa-lib
|
|
|
|
Add_dependency build coreutils
|
|
Add_dependency build libXrender-devel
|
|
Add_dependency build libXtst-devel
|
|
Add_dependency build alsa-lib-devel
|
|
|
|
Add_dependency full hicolor-icon-theme
|
|
Add_dependency full desktop-file-utils
|
|
Add_dependency full xdg-utils
|
|
Add_dependency full shared-mime-info
|
|
|
|
wrksrc=jre${_extraversion}
|
|
|
|
do_install()
|
|
{
|
|
# Install desktop related items
|
|
vmkdir usr/share
|
|
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
|
|
|
|
# Install license(s)
|
|
vmkdir usr/share/licenses/jre
|
|
vcopy COPYRIGHT usr/share/licenses/jre
|
|
vcopy LICENSE usr/share/licenses/jre
|
|
vcopy THIRDPARTYLICENSEREADME.txt usr/share/licenses/jre
|
|
|
|
# Fix system prefs folder FS#18872
|
|
vmkdir etc/.java/.systemPrefs
|
|
|
|
# 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
|
|
|
|
# Install JRE
|
|
vmkdir opt/java/jre
|
|
vcopy bin opt/java/jre
|
|
vcopy lib opt/java/jre
|
|
vcopy release opt/java/jre
|
|
vcopy Welcome.html opt/java/jre
|
|
|
|
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
|
|
|
|
|
|
if [ "${XBPS_MACHINE}" = "x86_64" ]; then
|
|
_arch=amd64
|
|
else
|
|
_arch=i386
|
|
fi
|
|
|
|
cd ${DESTDIR}/usr/lib/mozilla/plugins && \
|
|
ln -sf ../../../../opt/java/jre/lib/${_arch}/libnpjp2.so .
|
|
|
|
# linker's config
|
|
vmkdir etc/ld.so.conf.d
|
|
echo "/opt/java/jre/lib/${_arch}" > \
|
|
${DESTDIR}/etc/ld.so.conf.d/${pkgname}.conf
|
|
}
|