nixpkgs-suyu/pkgs/development/libraries/java/swt/builder.sh
David Guibert 4f50c9147f update swt from 3.1.1 to 3.6.1
svn path=/nixpkgs/trunk/; revision=25682
2011-01-24 19:57:15 +00:00

18 lines
305 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
ensureDir $out/lib
cp *.so $out/lib
mkdir out
javac -d out/ $(find org/ -name "*.java")
ensureDir $out/jars
cp version.txt out/
cd out && jar -c * > $out/jars/swt.jar