diff options
Diffstat (limited to 'desktop/moka-icon-theme/moka-icon-theme.SlackBuild')
-rw-r--r-- | desktop/moka-icon-theme/moka-icon-theme.SlackBuild | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/desktop/moka-icon-theme/moka-icon-theme.SlackBuild b/desktop/moka-icon-theme/moka-icon-theme.SlackBuild index 6e5880e046..65331fd244 100644 --- a/desktop/moka-icon-theme/moka-icon-theme.SlackBuild +++ b/desktop/moka-icon-theme/moka-icon-theme.SlackBuild @@ -1,9 +1,9 @@ -#!/bin/sh +#!/bin/bash # # Slackware build script for moka-icon-theme. # # Copyright 2015-2020 Edinaldo P. Silva, Rio de Janeiro, Brazil. -# Copyright 2020 Aaditya Bagga <aaditya_gnulinux@zoho.com> +# Copyright 2020 Aaditya <aaditya_gnulinux@zoho.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,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="moka-icon-theme" VERSION=${VERSION:-5.4.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 @@ -54,9 +64,7 @@ meson \ --prefix=/usr \ --datadir=/usr/share \ build - -ninja -C build -DESTDIR=$PKG ninja -C build install +DESTDIR=$PKG "${NINJA:=ninja}" -C build install mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp AUTHORS COPYING LICENSE* README.md $PKG/usr/doc/$PRGNAM-$VERSION @@ -67,4 +75,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 |