diff options
Diffstat (limited to 'system/ack')
-rw-r--r-- | system/ack/ack.SlackBuild | 21 | ||||
-rw-r--r-- | system/ack/ack.info | 6 |
2 files changed, 19 insertions, 8 deletions
diff --git a/system/ack/ack.SlackBuild b/system/ack/ack.SlackBuild index e86888926c..2379d2d658 100644 --- a/system/ack/ack.SlackBuild +++ b/system/ack/ack.SlackBuild @@ -1,7 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for ack -# Copyright 2013-2019 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy + +# Copyright 2013-2023 Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -21,14 +22,24 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=ack -VERSION=${VERSION:-3.0.2} +VERSION=${VERSION:-3.7.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -47,4 +58,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/system/ack/ack.info b/system/ack/ack.info index e55e27b337..c7be3afee2 100644 --- a/system/ack/ack.info +++ b/system/ack/ack.info @@ -1,8 +1,8 @@ PRGNAM="ack" -VERSION="3.0.2" +VERSION="3.7.0" HOMEPAGE="https://beyondgrep.com" -DOWNLOAD="https://beyondgrep.com/ack-v3.0.2" -MD5SUM="0fed116cb8a53825e041b4a04d282849" +DOWNLOAD="https://beyondgrep.com/ack-v3.7.0" +MD5SUM="3eb56338dd8b488ca41facefeca6f898" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |