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 | 39 |
1 files changed, 28 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 b12e167d67..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/sh +#!/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 @@ -23,28 +24,33 @@ # 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-circle" -VERSION=${VERSION:-20191227} +VERSION=${VERSION:-23.11.11} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} ARCH=noarch +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:-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 @@ -58,5 +64,16 @@ 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 -/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 |