summaryrefslogtreecommitdiff
path: root/jdk/Pkgfile
blob: 23e777870fdab03409bb3287d48d39bc28f8f93a (plain)
    1 # Description: Java 2 Software Development Kit
    2 # URL: http://java.sun.com
    3 # Maintainer: Jose V Beneyto, sepen at crux dot nu
    4 # Packager: Simone Rota, sip at crux dot nu
    5 
    6 name=jdk
    7 version=1.6.0_19
    8 release=1
    9 source=(http://download.java.net/dlj/binaries/jdk-6u19-dlj-linux-i586.bin)
   10 
   11 build(){
   12 	mkdir -p $PKG/usr/lib; cd $PKG/usr/lib
   13 	sh $SRC/jdk-*.bin --accept-license --unpack
   14 	
   15 	export GLOBIGNORE="*/man1"
   16 	rm -rf jdk*/{man/,jre/lib/javaws/messages_,demo,sample}*
   17 	rm -rf jdk*/jre/lib/fontconfig.{RedHat,SuSE,Sun,Turbo}.*
   18 	rm -rf jdk*/jre/plugin/i386/ns7-gcc29
   19 
   20 	export GLOBIGNORE="*/src.zip"
   21 	for i in jdk*/* jdk*/jre/*; do
   22 	  test -f $i && rm -rf $i;
   23 	done
   24 	
   25 	ln -s jdk* java
   26 
   27 	# generate classes.jsa
   28 	cd java
   29 	./bin/java -server -Xshare:dump
   30 	./bin/java -client -Xshare:dump
   31 	cd ..
   32 
   33 	mkdir -p $PKG/usr/bin && cd $PKG/usr/bin
   34 	for j in java javac javah javap javaws jar keytool; do
   35 		ln -s ../lib/java/bin/$j
   36 	done
   37 
   38 	# fix for xcb assertions
   39 	sed -i 's/XINERAMA/FAKEEXTN/g' \
   40 		$PKG/usr/lib/java/jre/lib/i386/xawt/libmawt.so 
   41 }

Generated by cgit