mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
development/tig: Updated for version 0.16.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
a5566f901a
commit
faa522370e
4 changed files with 13 additions and 15 deletions
|
@ -4,7 +4,7 @@ config() {
|
||||||
# If there's no config file by that name, mv it over:
|
# If there's no config file by that name, mv it over:
|
||||||
if [ ! -r $OLD ]; then
|
if [ ! -r $OLD ]; then
|
||||||
mv $NEW $OLD
|
mv $NEW $OLD
|
||||||
elif [ "$(cat $OLD|md5sum)" = "$(cat $NEW|md5sum)" ]; then
|
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
|
||||||
# toss the redundant copy
|
# toss the redundant copy
|
||||||
rm $NEW
|
rm $NEW
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -5,9 +5,9 @@
|
||||||
# make exactly 11 lines for the formatting to be correct. It's also
|
# make exactly 11 lines for the formatting to be correct. It's also
|
||||||
# customary to leave one space after the ':'.
|
# customary to leave one space after the ':'.
|
||||||
|
|
||||||
|-----handy-ruler-----------------------------------------------------------|
|
|-----handy-ruler----------------------------------------------------------|
|
||||||
tig: tig (ncurses interface for git)
|
tig: tig (ncurses interface for git)
|
||||||
tig:
|
tig:
|
||||||
tig: tig is a git repository browser that additionally can act as a pager
|
tig: tig is a git repository browser that additionally can act as a pager
|
||||||
tig: for output from various git commands.
|
tig: for output from various git commands.
|
||||||
tig: When browsing repositories, it uses the underlying git commands to
|
tig: When browsing repositories, it uses the underlying git commands to
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Slackware build script for tig
|
# Slackware build script for tig
|
||||||
|
|
||||||
# Copyright 2008-2009 Grigorios Bouzakis <grbzks@xsmail.com>
|
# Copyright 2008-2010 Grigorios Bouzakis <grbzks@xsmail.com>
|
||||||
# All rights reserved.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Permission to use, copy, modify, and distribute this software for any purpose
|
# 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.
|
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=tig
|
PRGNAM=tig
|
||||||
VERSION=${VERSION:-0.15}
|
VERSION=${VERSION:-0.16}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
# Automatically determine the architecture we're building on:
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i486 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
@ -82,18 +80,18 @@ CXXFLAGS="$SLKCFLAGS" \
|
||||||
--build=$ARCH-slackware-linux
|
--build=$ARCH-slackware-linux
|
||||||
|
|
||||||
make
|
make
|
||||||
make install install-doc DESTDIR=$PKG
|
make install install-doc-man DESTDIR=$PKG
|
||||||
|
|
||||||
mkdir -p $PKG/etc
|
mkdir -p $PKG/etc
|
||||||
cat contrib/tigrc > $PKG/etc/tigrc.new
|
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 \
|
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||||
|
|
||||||
( cd $PKG/usr/man
|
find $PKG/usr/man -type f -exec gzip -9 {} \;
|
||||||
find . -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
|
||||||
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
|
|
||||||
)
|
|
||||||
|
|
||||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="tig"
|
PRGNAM="tig"
|
||||||
VERSION="0.15"
|
VERSION="0.16"
|
||||||
HOMEPAGE="http://jonas.nitro.dk/tig/"
|
HOMEPAGE="http://jonas.nitro.dk/tig/"
|
||||||
DOWNLOAD="http://jonas.nitro.dk/tig/releases/tig-0.15.tar.gz"
|
DOWNLOAD="http://jonas.nitro.dk/tig/releases/tig-0.16.tar.gz"
|
||||||
MD5SUM="8f373a99823f6db241b66642075657d3"
|
MD5SUM="684572d93033d6cbfc5ee71cffe02935"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="Grigorios Bouzakis"
|
MAINTAINER="Grigorios Bouzakis"
|
||||||
|
|
Loading…
Reference in a new issue