summaryrefslogtreecommitdiffstats
path: root/desktop/paper-icon-theme/paper-icon-theme.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/paper-icon-theme/paper-icon-theme.SlackBuild')
-rw-r--r--desktop/paper-icon-theme/paper-icon-theme.SlackBuild21
1 files changed, 16 insertions, 5 deletions
diff --git a/desktop/paper-icon-theme/paper-icon-theme.SlackBuild b/desktop/paper-icon-theme/paper-icon-theme.SlackBuild
index d9df4a8350..747c61f977 100644
--- a/desktop/paper-icon-theme/paper-icon-theme.SlackBuild
+++ b/desktop/paper-icon-theme/paper-icon-theme.SlackBuild
@@ -1,8 +1,9 @@
-#!/bin/sh
+#!/bin/bash
#
# Slackware build script for paper-icon-theme.
#
-# Copyright 2016-2018 Edinaldo P. Silva, Rio de Janeiro, Brazil.
+# Copyright 2020 Andrew Payne, Boston MA, <phalange@komputermatrix.com>
+# Copyright 2016-2020 Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -22,17 +23,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="paper-icon-theme"
VERSION=${VERSION:-1.5.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
+# 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}
-CWD=$(pwd)
set -e
@@ -51,7 +62,7 @@ find -L . \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
meson --prefix $PKG/usr build
-ninja -C build install
+"${NINJA:=ninja}" -C build install
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp AUTHORS COPYING LICENSE README.md $PKG/usr/doc/$PRGNAM-$VERSION
@@ -62,4 +73,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
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