diff options
author | piernov <piernov@piernov.org> | 2012-01-22 11:38:02 +0100 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2012-01-22 11:38:02 +0100 |
commit | 50e5ce5b17e69be13228e2393c5804b0a79acfab (patch) | |
tree | 9845fa9af128d7fdd791755bb2be320f3ba2be4e /jdk/Pkgfile | |
parent | 9626427c1a1d9c292fc519810c13b9a8073e777f (diff) | |
parent | 8548e8d6882b55dfb509b18dedfb7db17630037d (diff) | |
download | nutyx-extra-50e5ce5b17e69be13228e2393c5804b0a79acfab.tar.gz nutyx-extra-50e5ce5b17e69be13228e2393c5804b0a79acfab.tar.bz2 nutyx-extra-50e5ce5b17e69be13228e2393c5804b0a79acfab.tar.xz nutyx-extra-50e5ce5b17e69be13228e2393c5804b0a79acfab.zip |
Merged with http://kiao.no-ip.info/NuTyX/git/nutyx-pakxe → Repository splitted → nutyx-extra
Diffstat (limited to 'jdk/Pkgfile')
-rw-r--r-- | jdk/Pkgfile | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/jdk/Pkgfile b/jdk/Pkgfile new file mode 100644 index 000000000..fb26e4ef6 --- /dev/null +++ b/jdk/Pkgfile @@ -0,0 +1,51 @@ +# Description: Contient l'environnement de developpement Sun's Java +# URL: http://java.sun.com/javase/downloads/index.jsp +# Maintainer: NuTyX coreteam +# Packager: thierryn1 at hispeed dot ch + +name=jdk +version=6u26 +release=1 +[ "`uname -m`" == "i686" ] && _ARCH=i586 +[ "`uname -m`" == "x86_64" ] && _ARCH=amd64 + +source=(http://download.java.net/dlj/binaries/$name-$version-dlj-linux-${_ARCH}.bin \ + jdk.sh http://java.net/projects/jdk-distros/sources/svn/content/trunk/utils/construct.sh?raw=true ) + +build() { + mv construct.sh?raw=true construct.sh + mkdir -p $PKG/etc/profile.d/ + mkdir -p $PKG/opt + mv jdk.sh $PKG/etc/profile.d/ + chmod 755 $name-$version-dlj-linux-${_ARCH}.bin + mkdir unbundle-jdk + cd unbundle-jdk + sh ../jdk-${version}-dlj-linux-${_ARCH}.bin --accept-license + cd .. + + sh construct.sh unbundle-jdk linux-jdk linux-jre + mv linux-jdk $PKG/opt/jdk + mkdir -p $PKG/usr/share/ + mv $PKG/opt/jdk/man \ + $PKG/usr/share/ +# mv $PKG/opt/jdk/jre/man \ +# $PKG/usr/share/ + rm -r $PKG/opt/jdk/demo + rm -r $PKG/opt/jdk/sample + rm -r $PKG/opt/jdk/db/demo + rm -r $PKG/opt/jdk/db/docs + rm -r $PKG/opt/jdk/db/javadoc + rm -r $PKG/opt/jdk/jre/man/ja_JP.eucJP + rm $PKG/opt/jdk/jre/man/ja + mv $PKG/opt/jdk/jre/man/man1/* \ + $PKG/usr/share/man/man1/ + rm -r $PKG/opt/jdk/jre/man + rm -r $PKG/usr/share/man/ja* + # Installation du plugin + mkdir -p $PKG/usr/lib/firefox/plugins + if [ ${_ARCH} = "i586" ]; then + ln -s /opt/jdk/jre/lib/i386/libnpjp2.so $PKG/usr/lib/firefox/plugins + else + ln -s /opt/jdk/jre/lib/amd64/libnpjp2.so $PKG/usr/lib/firefox/plugins + fi +} |