summaryrefslogtreecommitdiff
path: root/system/tmux/tmux.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/tmux/tmux.SlackBuild')
-rw-r--r--system/tmux/tmux.SlackBuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/system/tmux/tmux.SlackBuild b/system/tmux/tmux.SlackBuild
index 25c3c377b6..689ac1accf 100644
--- a/system/tmux/tmux.SlackBuild
+++ b/system/tmux/tmux.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for tmux
-# Copyright 2008-2009 Chess Griffin <chess@chessgriffin.com>
+# Copyright 2009-2010 Bogdan Pangrati <bogdan.pangrati@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,9 +23,9 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=tmux
-VERSION=${VERSION:-0.8}
+VERSION=${VERSION:-1.1}
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -58,9 +58,11 @@ find . \
-exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+./configure
CFLAGS+="$SLKCFLAGS" make
make install PREFIX=/usr DESTDIR=$PKG
+
# Fix up some root:bin ownership and add owner write perms where needed
chown -R root:root $PKG
chmod 0755 $PKG/usr/bin/tmux
@@ -70,7 +72,7 @@ chmod 0644 $PKG/usr/man/man1/tmux.1
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
- xargs strip --strip-unneeded 2> /dev/null
+ xargs strip --strip-unneeded 2> /dev/null || true
)
( cd $PKG/usr/man
@@ -86,4 +88,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.tgz
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}