a244e61258
This update includes several security fixes: http://www.oracle.com/technetwork/java/javase/2col/8u45-bugfixes-2494164.html http://www.oracle.com/technetwork/java/javase/8u45-relnotes-2494160.html http://www.oracle.com/technetwork/topics/security/cpuapr2015-2365600.html
38 lines
937 B
Plaintext
38 lines
937 B
Plaintext
# Description: Java 8 Software Development Kit
|
|
# URL: http://java.sun.com
|
|
# Maintainer: Jose V Beneyto, sepen at crux dot nu
|
|
# Packager: Simone Rota, sip at crux dot nu
|
|
|
|
name=jdk
|
|
version=1.8.0_45
|
|
release=1
|
|
source=(file:///$name-8u${version##*_}-linux-x64.tar.gz)
|
|
|
|
build(){
|
|
rm -rf $SRC/jdk*/{man/ja,jre/lib/{locale,deploy/messages_},db/lib/derbyLocale*}*
|
|
rm -rf $SRC/jdk*/jre/lib/fontconfig.{RedHat,SuSE,Sun,Turbo}.*
|
|
rm -rf $SRC/jdk*/{,jre/}[A-Z]*
|
|
|
|
install -d $PKG/usr/lib
|
|
mv $SRC/jdk* $PKG/usr/lib/$name
|
|
mv $PKG/usr/lib/jdk*/man $PKG/usr
|
|
|
|
cd $PKG/usr/lib
|
|
export GLOBIGNORE="*/src.zip"
|
|
for i in jdk/* jdk/jre/*; do
|
|
test -f $i && rm -rf $i;
|
|
done
|
|
|
|
ln -s $name $PKG/usr/lib/java
|
|
|
|
# generate classes.jsa
|
|
cd $PKG/usr/lib/java
|
|
./bin/java -server -Xshare:dump
|
|
./bin/java -client -Xshare:dump
|
|
|
|
mkdir -p $PKG/usr/bin && cd $PKG/usr/bin
|
|
for j in java javac javah javap javaws jar keytool; do
|
|
ln -s ../lib/java/bin/$j
|
|
done
|
|
}
|