6da726d56e
svn path=/nixpkgs/trunk/; revision=5579
15 lines
253 B
Bash
15 lines
253 B
Bash
source $stdenv/setup
|
|
|
|
ensureDir $out/jars
|
|
unzip -j $src '*/trang.jar'
|
|
cp -p *.jar $out/jars
|
|
|
|
ensureDir $out/bin
|
|
|
|
cat >> $out/bin/trang <<EOF
|
|
#! $SHELL
|
|
export JAVA_HOME=$jre
|
|
exec $jre/bin/java -jar $out/jars/trang.jar "\$@"
|
|
EOF
|
|
|
|
chmod a+x $out/bin/trang
|