development/gradle: Updated for version 2.0.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Arun Mascarenhas 2014-09-08 22:22:30 +07:00 committed by Willy Sudiarto Raharjo
parent c0beb00b0f
commit 1d0bf2474f
2 changed files with 5 additions and 16 deletions

View file

@ -26,7 +26,7 @@
# Started by Arun Mascarenhas (arunmascarenhas[at]yahoo[dot]com)
PRGNAM=gradle
VERSION=${VERSION:-1.11}
VERSION=${VERSION:-2.0}
ARCH=noarch
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -44,7 +44,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG/usr/share/java $PKG/$GRADLE_HOME $OUTPUT $PKG/usr/bin
cd $TMP
rm -rf ${PRGNAM}-$VERSION
unzip $CWD/${PRGNAM}-$VERSION-bin.zip
unzip $CWD/${PRGNAM}-$VERSION-all.zip
cd ${PRGNAM}-$VERSION
chown -R root:root .
@ -54,17 +54,6 @@ mkdir -p $PKG/etc/profile.d/
install -m755 $CWD/$PRGNAM.csh $PKG/etc/profile.d/$PRGNAM.csh
install -m755 $CWD/$PRGNAM.sh $PKG/etc/profile.d/$PRGNAM.sh
cd $PKG/usr/share/java
for jar in $PKG/$GRADLE_HOME/lib/*.jar ; do
if [ -f $PKG/usr/share/java/$(basename jar) ]
then
echo "Skipping $jar"
continue
fi
ln -s $GRADLE_HOME/lib/$(basename $jar) $(basename $jar)
done
cd -
cd $PKG/usr/bin
ln -s $GRADLE_HOME/bin/gradle
cd -

View file

@ -1,8 +1,8 @@
PRGNAM="gradle"
VERSION="1.11"
VERSION="2.0"
HOMEPAGE="http://www.gradle.org/"
DOWNLOAD="http://services.gradle.org/distributions/gradle-1.11-bin.zip"
MD5SUM="67acb841861f9ae362d7e0675f0aaca8"
DOWNLOAD="http://services.gradle.org/distributions/gradle-2.0-all.zip"
MD5SUM="1d0853b99e6097ea3dea5f3604dc0846"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="jdk"