From fc00e54f2bc4783df9698e45d7c2ddab0ea214e0 Mon Sep 17 00:00:00 2001 From: DhabyX Date: Thu, 6 Apr 2017 10:05:36 +0700 Subject: development/groovy: Updated for version 2.4.10 + new maintainer. Signed-off-by: Willy Sudiarto Raharjo --- development/groovy/groovy.SlackBuild | 30 +++++++++++++++++++++--------- 1 file changed, 21 insertions(+), 9 deletions(-) (limited to 'development/groovy/groovy.SlackBuild') diff --git a/development/groovy/groovy.SlackBuild b/development/groovy/groovy.SlackBuild index 06a09f22be..d0fce52acb 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 . 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 -- cgit v1.2.3