2015-02-06 11:58:21 +00:00
|
|
|
# Description: Java 8 Software Development Kit
|
2006-02-23 15:26:10 +00:00
|
|
|
# URL: http://java.sun.com
|
2009-04-16 08:51:45 +00:00
|
|
|
# Maintainer: Jose V Beneyto, sepen at crux dot nu
|
|
|
|
# Packager: Simone Rota, sip at crux dot nu
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2006-10-07 16:11:13 +00:00
|
|
|
name=jdk
|
2016-11-14 19:27:53 +01:00
|
|
|
version=1.8.0_112
|
2016-04-21 18:25:22 +02:00
|
|
|
release=1
|
2015-02-06 11:58:21 +00:00
|
|
|
source=(file:///$name-8u${version##*_}-linux-x64.tar.gz)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
build(){
|
2012-11-22 12:50:35 -06:00
|
|
|
rm -rf $SRC/jdk*/{man/ja,jre/lib/{locale,deploy/messages_},db/lib/derbyLocale*}*
|
2011-08-30 12:14:42 +02:00
|
|
|
rm -rf $SRC/jdk*/jre/lib/fontconfig.{RedHat,SuSE,Sun,Turbo}.*
|
|
|
|
rm -rf $SRC/jdk*/{,jre/}[A-Z]*
|
2011-02-14 11:49:02 +01:00
|
|
|
|
2016-04-12 18:47:12 +02:00
|
|
|
install -d $PKG/usr/{lib,share}
|
2013-04-17 10:36:22 +02:00
|
|
|
mv $SRC/jdk* $PKG/usr/lib/$name
|
2016-04-12 18:47:12 +02:00
|
|
|
mv $PKG/usr/lib/jdk*/man $PKG/usr/share
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2011-08-30 12:14:42 +02:00
|
|
|
cd $PKG/usr/lib
|
2006-02-23 15:26:10 +00:00
|
|
|
export GLOBIGNORE="*/src.zip"
|
2013-04-17 10:36:22 +02:00
|
|
|
for i in jdk/* jdk/jre/*; do
|
2006-02-23 15:26:10 +00:00
|
|
|
test -f $i && rm -rf $i;
|
|
|
|
done
|
|
|
|
|
2013-04-17 10:36:22 +02:00
|
|
|
ln -s $name $PKG/usr/lib/java
|
2006-02-23 15:26:10 +00:00
|
|
|
|
2006-08-03 12:47:01 +00:00
|
|
|
# generate classes.jsa
|
2011-08-30 12:14:42 +02:00
|
|
|
cd $PKG/usr/lib/java
|
2009-04-16 08:51:45 +00:00
|
|
|
./bin/java -server -Xshare:dump
|
|
|
|
./bin/java -client -Xshare:dump
|
2006-08-03 12:47:01 +00:00
|
|
|
|
2006-02-23 15:26:10 +00:00
|
|
|
mkdir -p $PKG/usr/bin && cd $PKG/usr/bin
|
2006-05-16 00:23:12 +00:00
|
|
|
for j in java javac javah javap javaws jar keytool; do
|
2006-02-23 15:26:10 +00:00
|
|
|
ln -s ../lib/java/bin/$j
|
|
|
|
done
|
|
|
|
}
|