diff options
Diffstat (limited to 'desktop/faba-icon-theme/faba-icon-theme.SlackBuild')
-rw-r--r-- | desktop/faba-icon-theme/faba-icon-theme.SlackBuild | 27 |
1 files changed, 21 insertions, 6 deletions
diff --git a/desktop/faba-icon-theme/faba-icon-theme.SlackBuild b/desktop/faba-icon-theme/faba-icon-theme.SlackBuild index 7ae2668c3f..80ef95e8ea 100644 --- a/desktop/faba-icon-theme/faba-icon-theme.SlackBuild +++ b/desktop/faba-icon-theme/faba-icon-theme.SlackBuild @@ -1,8 +1,9 @@ -#!/bin/sh +#!/bin/bash # # Slackware build script for faba-icon-theme. # -# Copyright 2015-2018 Edinaldo P. Silva, Rio de Janeiro, Brazil. +# Copyright 2015-2020 Edinaldo P. Silva, Rio de Janeiro, Brazil. +# Copyright 2020 Aaditya <aaditya_gnulinux@zoho.com> # 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="faba-icon-theme" VERSION=${VERSION:-4.3} 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 @@ -49,8 +60,12 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -meson --prefix $PKG/usr build -ninja -C build install +meson \ + --prefix=/usr \ + --datadir=/usr/share \ + build + +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 @@ -61,4 +76,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 |