1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/pkgs/development/libraries/java/swt/builder.sh
Eelco Dolstra c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00

19 lines
303 B
Bash

source $stdenv/setup
unzip $src src.zip
unzip src.zip
export JAVA_HOME=${jdk}
echo $JAVA_HOME=${jdk}
sh ./build.sh make_swt make_atk
mkdir -p $out/lib
cp *.so $out/lib
mkdir out
javac -d out/ $(find org/ -name "*.java")
mkdir -p $out/jars
cp version.txt out/
cd out && jar -c * > $out/jars/swt.jar