|
|
|
@ -30,10 +30,12 @@ NAMESRC=${NAMESRC:-apache-ant}
|
|
|
|
|
VERSION=${VERSION:-1.7.1}
|
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-bin.tar.gz}
|
|
|
|
|
WGET=${WGET:-ftp://mir1.ovh.net/ftp.apache.org/dist/ant/binaries/$ARCHIVE}
|
|
|
|
|
CONTRIB_ARCHIVE=ant-contrib-0.6-bin.tar.gz
|
|
|
|
|
CONTRIB_WGET=http://surfnet.dl.sourceforge.net/project/ant-contrib/ant-contrib/ant-contrib-0.6/$CONTRIB_ARCHIVE
|
|
|
|
|
|
|
|
|
|
# Built package infos
|
|
|
|
|
NAMETGZ=${NAMETGZ:-apache-ant}
|
|
|
|
|
BUILD=${BUILD:-2GGD}
|
|
|
|
|
BUILD=${BUILD:-3GGD}
|
|
|
|
|
ARCH=${ARCH:-noarch}
|
|
|
|
|
TARGET=${TARGET:-i486}
|
|
|
|
|
EXT=${EXT:-txz}
|
|
|
|
@ -56,12 +58,16 @@ if [ ! -d $TMP ]; then
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# Get and verify the source archive
|
|
|
|
|
# Get and verify the source archives
|
|
|
|
|
if [ ! -r $ARCHIVE ]; then
|
|
|
|
|
wget -c -O $ARCHIVE.part "$WGET"
|
|
|
|
|
mv $ARCHIVE.part $ARCHIVE
|
|
|
|
|
fi
|
|
|
|
|
sha1sum -c $ARCHIVE.sha1
|
|
|
|
|
if [ ! -r $CONTRIB_ARCHIVE ]; then
|
|
|
|
|
wget -c -O $CONTRIB_ARCHIVE.part "$CONTRIB_WGET"
|
|
|
|
|
mv $CONTRIB_ARCHIVE.part $CONTRIB_ARCHIVE
|
|
|
|
|
fi
|
|
|
|
|
sha1sum -c sha1sums
|
|
|
|
|
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
|
|
|
|
|
|
|
|
|
|
# Prepare the package tree
|
|
|
|
@ -70,6 +76,7 @@ echo "Building $ARCHIVE..."
|
|
|
|
|
tar xf $CWD/$ARCHIVE
|
|
|
|
|
cd $NAME
|
|
|
|
|
|
|
|
|
|
# Install ant libraries
|
|
|
|
|
mkdir -p $PKG/usr/lib/apache-ant
|
|
|
|
|
(
|
|
|
|
|
cd lib
|
|
|
|
@ -77,8 +84,13 @@ mkdir -p $PKG/usr/lib/apache-ant
|
|
|
|
|
install -m 644 $jar $PKG/usr/lib/apache-ant/${jar%.jar}-$VERSION.jar
|
|
|
|
|
done
|
|
|
|
|
)
|
|
|
|
|
tar xf $CWD/$CONTRIB_ARCHIVE -O lib/ant-contrib-0.6.jar \
|
|
|
|
|
> $PKG/usr/lib/apache-ant/ant-contrib-0.6.jar
|
|
|
|
|
|
|
|
|
|
# Install the launch script
|
|
|
|
|
install -D -m 755 $CWD/ant.sh $PKG/usr/bin/ant
|
|
|
|
|
|
|
|
|
|
# Install helper files
|
|
|
|
|
mkdir -p $PKG/usr/share
|
|
|
|
|
cp -r etc $PKG/usr/share/apache-ant
|
|
|
|
|
|
|
|
|
|