diff options
Diffstat (limited to 'system/tabbed/tabbed.SlackBuild')
-rw-r--r-- | system/tabbed/tabbed.SlackBuild | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/system/tabbed/tabbed.SlackBuild b/system/tabbed/tabbed.SlackBuild index a1dcf22651..e371454aab 100644 --- a/system/tabbed/tabbed.SlackBuild +++ b/system/tabbed/tabbed.SlackBuild @@ -1,21 +1,26 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for tabbed -# Written by B. Watson (yalhcru@gmail.com) +# Written by B. Watson (urchlay@slackware.uk) # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20221228 bkw: update for 0.7 + # 20140826 bkw: # - updated for 0.6 # - add support for patches/. The old 0.4 build had this, but this one # works with simple config patches or the ones from suckless.org # - mention dmenu in the README +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=tabbed -VERSION=${VERSION:-0.6} +VERSION=${VERSION:-0.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -25,7 +30,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} @@ -53,11 +62,8 @@ rm -rf $PRGNAM-$VERSION tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . -find -L . \ - \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ - -exec chmod 755 {} \; -o \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+ # Apply any patches the user might have added. This is more complex # than usual because we want to detect whether each patch needs -p0 @@ -79,6 +85,9 @@ for i in $( ls $CWD/patches ); do patch -p$p < $diff done +# upstream forgot this man page, apparently +sed -i '/xembed\.1/d' Makefile + sed -i \ -e 's,share/man,man,' \ -e 's,usr/local,usr/,' \ @@ -97,11 +106,11 @@ make install DESTDIR=$PKG gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a LICENSE README TODO $PKG/usr/doc/$PRGNAM-$VERSION +cp -a LICENSE README $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild 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.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |