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