mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
* fix expression and build script for sun j2re for linux.
Build script should be improved to handle to installation stuff Sun is doing in their script. svn path=/nixpkgs/trunk/; revision=260
This commit is contained in:
parent
3b783872d2
commit
101716ac56
16
pkgs/j2re/j2re-sun-linux-build.sh
Executable file
16
pkgs/j2re/j2re-sun-linux-build.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#! /bin/sh
|
||||
|
||||
mkdir -p $out || exit 1
|
||||
cd $out || exit 1
|
||||
tail +473 $binzip > j2re.exe || exit 1
|
||||
chmod u+x j2re.exe || exit 1
|
||||
./j2re.exe || exit 1
|
||||
rm j2re.exe || exit 1
|
||||
mv j2re1.4.2/* . || exit 1
|
||||
rmdir j2re1.4.2 || exit 1
|
||||
|
||||
PACKED_JARS="lib/rt lib/jsse lib/charsets lib/ext/localedata lib/plugin javaws/javaws"
|
||||
|
||||
for i in $PACKED_JARS; do
|
||||
lib/unpack $i.pack $i.jar || exit 1
|
||||
done
|
12
pkgs/j2re/j2re-sun-linux.fix
Normal file
12
pkgs/j2re/j2re-sun-linux.fix
Normal file
@ -0,0 +1,12 @@
|
||||
Package(
|
||||
[ ("name", "j2re-sun-linux-1.4.2")
|
||||
, ("build", Relative("j2re/j2re-sun-linux-build.sh"))
|
||||
|
||||
, ("binzip", App(IncludeFix("fetchurl/fetchurl.fix"),
|
||||
[ ("url", "http://java.sun.com/webapps/download/AutoDL?BundleId=8573")
|
||||
, ("md5", "2f0ab3bdc03ea51a2da6d0b33e4360f4")
|
||||
]))
|
||||
|
||||
, ("glibc", IncludeFix("glibc/glibc.fix"))
|
||||
]
|
||||
)
|
Loading…
Reference in New Issue
Block a user