summaryrefslogtreecommitdiff
path: root/development/tig/tig.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/tig/tig.SlackBuild')
-rw-r--r--development/tig/tig.SlackBuild16
1 files changed, 7 insertions, 9 deletions
diff --git a/development/tig/tig.SlackBuild b/development/tig/tig.SlackBuild
index 2c4ac68f6c..f84efdd355 100644
--- a/development/tig/tig.SlackBuild
+++ b/development/tig/tig.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Slackware build script for tig
-# Copyright 2008-2009 Grigorios Bouzakis <grbzks@xsmail.com>
+# Copyright 2008-2010 Grigorios Bouzakis <grbzks@xsmail.com>
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for any purpose
@@ -20,16 +20,14 @@
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=tig
-VERSION=${VERSION:-0.15}
+VERSION=${VERSION:-0.16}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -82,18 +80,18 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install install-doc DESTDIR=$PKG
+make install install-doc-man DESTDIR=$PKG
mkdir -p $PKG/etc
cat contrib/tigrc > $PKG/etc/tigrc.new
+mkdir -p $PKG/etc/bash_completion.d
+cat contrib/tig-completion.bash > $PKG/etc/bash_completion.d/tig
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( cd $PKG/usr/man
- find . -type f -exec gzip -9 {} \;
- for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-)
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION