mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-01-24 02:22:13 +08:00
70 lines
2.1 KiB
Bash
70 lines
2.1 KiB
Bash
#
|
|
# KDE SC Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=jre
|
|
pkgver=6u27
|
|
pkgrel=1
|
|
pkgdesc="Sun's java runtime environment"
|
|
arch=('i686' 'x86_64')
|
|
[ "$CARCH" = "i686" ] && ARCH=i586
|
|
[ "$CARCH" = "x86_64" ] && ARCH=x64
|
|
url="http://java.sun.com"
|
|
depends=('glibc' 'libxtst')
|
|
install="jre.install"
|
|
source=(http://download.oracle.com/otn-pub/java/jdk/${pkgver}-b07/jdk-${pkgver}-linux-$ARCH.bin
|
|
construct.sh::http://java.net/projects/jdk-distros/sources/svn/content/trunk/utils/construct.sh?raw=true
|
|
jre.profile)
|
|
[ "$CARCH" = "i686" ] && md5sums=('bdb5f05bd20c6aa9a4729726191bf6fd'
|
|
'94065b612df0046d9ae758943f9f6a75'
|
|
'50b4f5ac4129097461d246645d73a622')
|
|
[ "$CARCH" = "x86_64" ] && md5sums=('94f93a3ff03f824a238ecd79ad90433e'
|
|
'94065b612df0046d9ae758943f9f6a75'
|
|
'50b4f5ac4129097461d246645d73a622')
|
|
replaces=('j2re')
|
|
conflicts=('j2re' 'java-runtime')
|
|
provides=('j2re' 'java-runtime=6')
|
|
license=('custom')
|
|
|
|
build() {
|
|
cd ${srcdir}
|
|
|
|
mkdir unbundle-jdk
|
|
cd unbundle-jdk
|
|
|
|
sh ../jdk-${pkgver}-linux-$ARCH.bin --accept-license
|
|
|
|
cd ..
|
|
|
|
sh construct.sh unbundle-jdk linux-jdk linux-jre
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}
|
|
|
|
mkdir -p ${pkgdir}/opt/java
|
|
mv linux-jdk/jre ${pkgdir}/opt/java
|
|
|
|
install -Dm755 ${srcdir}/${pkgname}.profile ${pkgdir}/etc/profile.d/${pkgname}.sh
|
|
|
|
mkdir -p ${pkgdir}/usr/lib/mozilla/plugins
|
|
|
|
if [ "$CARCH" = "i686" ]; then
|
|
ln -s /opt/java/jre/lib/i386/libnpjp2.so ${pkgdir}/usr/lib/mozilla/plugins
|
|
else ln -s /opt/java/jre/lib/amd64/libnpjp2.so ${pkgdir}/usr/lib/mozilla/plugins
|
|
fi
|
|
|
|
mkdir -p ${pkgdir}/usr/share/licenses/jre
|
|
cp ${pkgdir}/opt/java/jre/COPYRIGHT ${pkgdir}/usr/share/licenses/jre
|
|
cp ${pkgdir}/opt/java/jre/LICENSE ${pkgdir}/usr/share/licenses/jre
|
|
cp ${pkgdir}/opt/java/jre/THIRDPARTYLICENSEREADME.txt ${pkgdir}/usr/share/licenses/jre
|
|
|
|
# Fix system prefs folder (FS#18872)
|
|
install -dm755 ${pkgdir}/etc/.java/.systemPrefs
|
|
}
|