diff options
Diffstat (limited to 'desktop/numix-icon-theme-circle/numix-icon-theme-circle.SlackBuild')
-rw-r--r-- | desktop/numix-icon-theme-circle/numix-icon-theme-circle.SlackBuild | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/desktop/numix-icon-theme-circle/numix-icon-theme-circle.SlackBuild b/desktop/numix-icon-theme-circle/numix-icon-theme-circle.SlackBuild index 60746449a5..80d91133fe 100644 --- a/desktop/numix-icon-theme-circle/numix-icon-theme-circle.SlackBuild +++ b/desktop/numix-icon-theme-circle/numix-icon-theme-circle.SlackBuild @@ -1,9 +1,10 @@ #!/bin/bash # -# Slackware build script for numix-icon-theme. +# Slackware build script for numix-icon-theme-circle # # 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 Edinaldo P. Silva, Rio de Janeiro, Brazil. # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -26,16 +27,13 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM="numix-icon-theme-circle" -VERSION=${VERSION:-20191227} +VERSION=${VERSION:-23.11.11} 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 @@ -45,16 +43,14 @@ TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -SRCVER=${SRCVER:-19.12.27} - 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 @@ -68,6 +64,14 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh +# 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. +# there's a broken symlink from upstream, but we leave it behind +# see https://github.com/SlackBuildsOrg/slackbuilds/pull/4181 for +# discussion cd $PKG find . -type l \ -printf '( cd %h ; rm -rf %f )\n( cd %h ; ln -sf %l %f )\n' -delete | \ |