summaryrefslogtreecommitdiffstats
path: root/development/tig
diff options
context:
space:
mode:
Diffstat (limited to 'development/tig')
-rw-r--r--development/tig/tig.SlackBuild21
-rw-r--r--development/tig/tig.info6
2 files changed, 17 insertions, 10 deletions
diff --git a/development/tig/tig.SlackBuild b/development/tig/tig.SlackBuild
index 1a09002cab..1c0d84306b 100644
--- a/development/tig/tig.SlackBuild
+++ b/development/tig/tig.SlackBuild
@@ -1,8 +1,8 @@
-#!/bin/sh
+#!/bin/bash
# Slackware build script for tig
-# Copyright 2014-2018 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
+# Copyright 2014-2023 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,10 +22,13 @@
# 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=tig
-VERSION=${VERSION:-2.5.0}
+VERSION=${VERSION:-2.5.9}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -35,7 +38,11 @@ if [ -z "$ARCH" ]; then
esac
fi
-CWD=$(pwd)
+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}
@@ -88,8 +95,8 @@ make install-doc install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-mkdir -p $PKG/etc/bash_completion.d
-cat contrib/tig-completion.bash > $PKG/etc/bash_completion.d/tig
+mkdir -p $PKG/usr/share/bash-completion/completions
+cat contrib/tig-completion.bash > $PKG/usr/share/bash-completion/completions/tig
mv $PKG/etc/tigrc $PKG/etc/tigrc.new
@@ -105,4 +112,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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/development/tig/tig.info b/development/tig/tig.info
index 0e8c3b33f8..ad3ebe5898 100644
--- a/development/tig/tig.info
+++ b/development/tig/tig.info
@@ -1,8 +1,8 @@
PRGNAM="tig"
-VERSION="2.5.0"
+VERSION="2.5.9"
HOMEPAGE="https://jonas.github.io/tig/"
-DOWNLOAD="https://github.com/jonas/tig/releases/download/tig-2.5.0/tig-2.5.0.tar.gz"
-MD5SUM="2db8597387743288ae2ebf724434bdd0"
+DOWNLOAD="https://github.com/jonas/tig/releases/download/tig-2.5.9/tig-2.5.9.tar.gz"
+MD5SUM="54d0d7a17b75832eac632b6232f785fe"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""