summaryrefslogtreecommitdiffstats
path: root/base/jdk/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'base/jdk/Pkgfile')
-rw-r--r--base/jdk/Pkgfile27
1 files changed, 27 insertions, 0 deletions
diff --git a/base/jdk/Pkgfile b/base/jdk/Pkgfile
new file mode 100644
index 000000000..471bf40ad
--- /dev/null
+++ b/base/jdk/Pkgfile
@@ -0,0 +1,27 @@
+# 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
+# Depends on:
+
+name=jdk
+version=6u14
+release=1
+source=(http://www.nutyx.org/files/$name-$version-linux-i586.bin \
+ jdk.sh )
+
+
+build() {
+ mkdir -p $PKG/etc/profile.d/
+ mv jdk.sh $PKG/etc/profile.d/
+ chmod 755 $name-$version-linux-i586.bin
+ ./jdk-$version-linux-i586.bin
+ cd jdk1.6.0_14
+ install -v -m755 -d $PKG/opt/jdk-bin-$version
+ mv -v * $PKG/opt/jdk-bin-$version
+ ln -v -sf xawt/libmawt.so \
+ $PKG/opt/jdk-bin-$version/jre/lib/i386/
+ sed -i 's@XINERAMA@FAKEEXTN@g' \
+ $PKG/opt/jdk-bin-$version/jre/lib/i386/xawt/libmawt.so
+ ln -v -nsf jdk-bin-$version $PKG/opt/jdk
+}