diff options
Diffstat (limited to 'desktop/numix-icon-theme/numix-icon-theme.SlackBuild')
-rw-r--r-- | desktop/numix-icon-theme/numix-icon-theme.SlackBuild | 39 |
1 files changed, 28 insertions, 11 deletions
diff --git a/desktop/numix-icon-theme/numix-icon-theme.SlackBuild b/desktop/numix-icon-theme/numix-icon-theme.SlackBuild index c0c2ff4947..f40fa5052a 100644 --- a/desktop/numix-icon-theme/numix-icon-theme.SlackBuild +++ b/desktop/numix-icon-theme/numix-icon-theme.SlackBuild @@ -1,9 +1,10 @@ -#!/bin/sh +#!/bin/bash # -# Slackware build script for numix-icon-theme. +# Slackware build script for numix-icon-theme # # Copyright 2015-2018 Edinaldo P. Silva, Rio de Janeiro, Brazil. -# Copyright 2020 Isaac Yu <isaacyu1@isaacyu1.com> +# Copyright 2020-2022 Isaac Yu <isaacyu1@isaacyu1.com> +# Copyright 2023-2024 Edinaldo P. Silva, Rio de Janeiro, Brazil. # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,28 +24,36 @@ # 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="numix-icon-theme" -VERSION=${VERSION:-20200320} +VERSION=${VERSION:-23.12.02} 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) - -SRCVER=${SRCVER:-20.03.20} set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$SRCVER -tar xvf $CWD/${PRGNAM}-${SRCVER}.tar.gz -cd $PRGNAM-$SRCVER +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION chown -R root:root . mkdir -p $PKG/usr/share/icons @@ -58,5 +67,13 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh +# 20200406 bkw: create doinst.sh. Normally makepkg does this, but it's +# *painfully* slow and we have over 17,000 symlinks to process. It takes +# 15 minutes for makepkg to run on my test system. The find command +# below runs in 1.5 seconds and creates an identical doinst.sh. This is +# a 1000x speedup. cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +find . -type l \ + -printf '( cd %h ; rm -rf %f )\n( cd %h ; ln -sf %l %f )\n' -delete | \ + sed 's,cd \./,cd ,' >> $PKG/install/doinst.sh +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |