2005-12-05 14:11:09 +00:00
|
|
|
source $stdenv/setup || exit 1
|
2004-08-19 14:57:38 +01:00
|
|
|
|
|
|
|
tar zxf $src || exit 1
|
2004-08-20 23:48:59 +01:00
|
|
|
cd jclasslib || exit 1
|
|
|
|
|
2004-08-22 20:40:26 +01:00
|
|
|
xpf-rm -f build.xml "//taskdef"
|
2004-08-19 14:57:38 +01:00
|
|
|
|
2004-08-20 23:48:59 +01:00
|
|
|
ant clean || exit 1
|
|
|
|
ant jar || exit 1
|
|
|
|
|
|
|
|
mkdir -p $out/bin
|
|
|
|
mv build/jclasslib.jar $out/bin/ || exit 1
|
2004-08-19 14:57:38 +01:00
|
|
|
|
|
|
|
cat >> $out/bin/jclasslib <<EOF
|
|
|
|
#! /bin/sh
|
|
|
|
|
2005-09-18 00:58:51 +01:00
|
|
|
export JAVA_HOME=$jre
|
2004-08-19 14:57:38 +01:00
|
|
|
|
2005-09-18 00:58:51 +01:00
|
|
|
$jre/bin/java -jar $out/bin/jclasslib.jar \$@
|
2004-08-19 14:57:38 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod a+x $out/bin/jclasslib || exit 1
|