diff options
author | DhabyX <slack.dhabyx@gmail.com> | 2017-04-06 10:05:36 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-04-06 21:03:16 +0700 |
commit | fc00e54f2bc4783df9698e45d7c2ddab0ea214e0 (patch) | |
tree | 82de320396f47bf64ec718c5cab076f1cb242e8e /development/groovy/groovy.SlackBuild | |
parent | e5cad558f144fb59415fe5b2a89e391dc7c69f2d (diff) |
development/groovy: Updated for version 2.4.10 + new maintainer.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/groovy/groovy.SlackBuild')
-rw-r--r-- | development/groovy/groovy.SlackBuild | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/development/groovy/groovy.SlackBuild b/development/groovy/groovy.SlackBuild index 06a09f22be2ef..d0fce52acbc49 100644 --- a/development/groovy/groovy.SlackBuild +++ b/development/groovy/groovy.SlackBuild @@ -5,6 +5,7 @@ # Originally by Jockey S. Kyd (jockey dot kyd at gmail dot com) # # Modified by Ryan P.C. McQuen, WA, ryanpcmcquen@member.fsf.org +# 2017 | Dhaby Xiloj | slack.dhabyx@gmail.com # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -25,7 +26,7 @@ # not, see <http://www.gnu.org/licenses/>. PRGNAM=groovy -VERSION=${VERSION:-2.4.4} +VERSION=${VERSION:-2.4.10} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -63,18 +64,29 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; mkdir -p $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM -mv * $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM -cd .. -rmdir $PRGNAM-$VERSION +mv {bin,conf,embeddable,grooid,indy,lib} \ + $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM + +# clean .bat files +rm $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/bin/*.bat + +mkdir -p $PKG/usr/bin/ +pushd $PKG/usr/lib$LIBDIRSUFFIX/$PRGNAM/bin +for file in *; do + ln -sf /usr/lib$LIBDIRSUFFIX/$PRGNAM/bin/$file $PKG/usr/bin/$file +done +popd # no need to install these with a .new extension mkdir -p $PKG/etc/profile.d -cp -a $CWD/profile.d/$PRGNAM.*sh $PKG/etc/profile.d -sed -i "s|@LIBDIR@|/usr/lib$LIBDIRSUFFIX|" $PKG/etc/profile.d/$PRGNAM.*sh -chmod 0755 $PKG/etc/profile.d/$PRGNAM.*sh -chown root:root $PKG/etc/profile.d/$PRGNAM.*sh +cp -a $CWD/profile.d/$PRGNAM.*sh.new $PKG/etc/profile.d +sed -i "s|@LIBDIR@|/usr/lib$LIBDIRSUFFIX|" $PKG/etc/profile.d/$PRGNAM.*sh.new +chmod 0755 $PKG/etc/profile.d/$PRGNAM.*sh.new +chown root:root $PKG/etc/profile.d/$PRGNAM.*sh.new -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM +unzip $CWD/apache-$PRGNAM-docs-$VERSION.zip -d $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM +cp -r LICENSE licenses NOTICE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install |