2005-12-26 00:51:24 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/jars
|
2005-12-26 00:51:24 +00:00
|
|
|
cp $src $out/jars/azureus.jar
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2005-12-26 00:51:24 +00:00
|
|
|
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
|