summaryrefslogtreecommitdiffstats
path: root/source/ap/tmux/tmux.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xsource/ap/tmux/tmux.SlackBuild (renamed from testing/source/xf86-video-ati/xf86-video-ati.SlackBuild)30
1 files changed, 22 insertions, 8 deletions
diff --git a/testing/source/xf86-video-ati/xf86-video-ati.SlackBuild b/source/ap/tmux/tmux.SlackBuild
index f5e727f62..81974f5da 100755
--- a/testing/source/xf86-video-ati/xf86-video-ati.SlackBuild
+++ b/source/ap/tmux/tmux.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
-# Copyright 2012 Patrick J. Volkerding, Sebeka, Minnesota, USA
+# Copyright 2013 Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -21,7 +21,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-PKGNAM=xf86-video-ati
+PKGNAM=tmux
VERSION=${VERSION:-$(echo $PKGNAM-*.tar.?z* | rev | cut -f 3- -d . | cut -f 1 -d - | rev)}
BUILD=${BUILD:-1}
@@ -84,15 +84,13 @@ find . \
-exec chmod 644 {} \;
# Configure:
-CFLAGS=$SLKCFLAGS \
+CFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
--sysconfdir=/etc \
- --localstatedir=/var \
- --infodir=/usr/info \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
--mandir=/usr/man \
- --docdir=/usr/doc/xf86-video-fbdev-$VERSION \
+ --infodir=/usr/info \
--disable-static \
--build=$ARCH-slackware-linux
@@ -109,7 +107,7 @@ make install DESTDIR=$PKG || exit 1
# Add a documentation directory:
mkdir -p $PKG/usr/doc/${PKGNAM}-$VERSION
cp -a \
- COPYING* README* NEWS* \
+ FAQ README TODO examples \
$PKG/usr/doc/${PKGNAM}-$VERSION
# Compress and if needed symlink the man pages:
@@ -127,6 +125,22 @@ if [ -d $PKG/usr/man ]; then
)
fi
+# Compress info files, if any:
+if [ -d $PKG/usr/info ]; then
+ ( cd $PKG/usr/info
+ rm -f dir
+ gzip -9 *
+ )
+fi
+
+# If there's a CHANGES file, installing at least part of the recent history
+# is useful, but don't let it get totally out of control:
+if [ -r CHANGES ]; then
+ DOCSDIR=$(echo $PKG/usr/doc/${PKGNAM}-$VERSION)
+ cat CHANGES | head -n 1000 > $DOCSDIR/CHANGES
+ touch -r CHANGES $DOCSDIR/CHANGES
+fi
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc