diff options
Diffstat (limited to 'desktop/xmms-skins-ater/xmms-skins-ater.SlackBuild')
-rw-r--r-- | desktop/xmms-skins-ater/xmms-skins-ater.SlackBuild | 28 |
1 files changed, 19 insertions, 9 deletions
diff --git a/desktop/xmms-skins-ater/xmms-skins-ater.SlackBuild b/desktop/xmms-skins-ater/xmms-skins-ater.SlackBuild index 465172a7b1..da55232644 100644 --- a/desktop/xmms-skins-ater/xmms-skins-ater.SlackBuild +++ b/desktop/xmms-skins-ater/xmms-skins-ater.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for xmms-skins-ater -# Copyright 2013-2016 Petar Petrov slackalaxy@gmail.com +# Copyright 2013-2021 Petar Petrov slackalaxy@gmail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,17 +22,27 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=xmms-skins-ater VERSION=${VERSION:-1.7} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch SRCNAM=ATER-XMMS SRCVER=43630 # "version" at opendesktop.org -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +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} @@ -48,10 +58,10 @@ cd $PRGNAM-$VERSION tar xvf $CWD/$SRCVER-$SRCNAM.tar.gz 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 {} \; + \( -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 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; mkdir -p $PKG/usr/share/xmms/Skins cp *.wsz $PKG/usr/share/xmms/Skins @@ -63,4 +73,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.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |