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