nixpkgs/pkgs/tools/networking/azureus/builder.sh
Eelco Dolstra b43c421658 * JDK: put the machine-dependent header files in the right place.
* Added SWT for GTK (built from source).
* Added Azureus (a Bittorrent client written in Java).

svn path=/nixpkgs/trunk/; revision=4438
2005-12-26 00:51:24 +00:00

20 lines
434 B
Bash

source $stdenv/setup
ensureDir $out/jars
cp $src $out/jars/azureus.jar
ensureDir $out/bin
cat > $out/bin/azureus <<EOF
#! $SHELL -e
azureusHome=$out
if test -n "\$HOME"; then
azureusHome=\$HOME/.Azureus
fi
exec $jdk/bin/java -Xms16m -Xmx128m \
-cp $out/jars/azureus.jar:$swt/jars/swt.jar \
-Djava.library.path=$swt/lib \
-Dazureus.install.path=\$azureusHome \
org.gudy.azureus2.ui.swt.Main
EOF
chmod +x $out/bin/azureus