diff options
Diffstat (limited to 'desktop/mint-y-icons/mint-y-icons.SlackBuild')
-rw-r--r-- | desktop/mint-y-icons/mint-y-icons.SlackBuild | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/desktop/mint-y-icons/mint-y-icons.SlackBuild b/desktop/mint-y-icons/mint-y-icons.SlackBuild index a38846a827..e78f4a3a73 100644 --- a/desktop/mint-y-icons/mint-y-icons.SlackBuild +++ b/desktop/mint-y-icons/mint-y-icons.SlackBuild @@ -3,6 +3,7 @@ # Slackware build script for mint-y-icons # Copyright 2017 Matt Dinslage (daedra1980@gmail.com), Springfield, MO, USA +# Copyright 2024 Isaac Yu <isaacyu@protonmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -25,16 +26,13 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM="mint-y-icons" -VERSION=${VERSION:-1.5.9} +VERSION=${VERSION:-1.7.5} 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 @@ -50,14 +48,27 @@ rm -rf $PKG mkdir -p $TMP $PKG/usr/doc/$PRGNAM-$VERSION $OUTPUT cd $PKG # tar directly into $PKG -tar xvf $CWD/$PRGNAM"_"$VERSION.tar.xz --strip-components=1 \ - $PRGNAM/usr/ +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz --strip-components=1 \ + $PRGNAM-$VERSION/usr/ + +# Remove broken relative symlinks +find $PKG/usr/share/icons -xtype l -delete + +# Add missing icons for BleachBit +# This fix does not apply to the Mint-Y theme itself +COLORS=( Aqua Blue Cyan Grey Navy Orange Pink Purple Red Sand Teal Yaru ) +for COLOR in ${COLORS[@]}; do + cp $CWD/icons/22/edit-find.svg $PKG/usr/share/icons/Mint-Y-$COLOR/places/22/edit-find.svg + cp $CWD/icons/22/edit-clear-all.svg $PKG/usr/share/icons/Mint-Y-$COLOR/places/22/edit-clear-all.svg + cp $CWD/icons/22/edit-clear-list.svg $PKG/usr/share/icons/Mint-Y-$COLOR/places/22/edit-clear-list.svg + cp $CWD/icons/22/process-stop.svg $PKG/usr/share/icons/Mint-Y-$COLOR/places/22/process-stop.svg +done # install docs & license ( cd $PKG/usr/doc/$PRGNAM-$VERSION - tar xvf $CWD/$PRGNAM"_"$VERSION.tar.xz --strip-components=2 \ - $PRGNAM/debian/{changelog,copyright} + tar xvf $CWD/$PRGNAM-$VERSION.tar.gz --strip-components=2 \ + $PRGNAM-$VERSION/debian/{changelog,copyright} ) chown -R root:root . @@ -74,4 +85,7 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG +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 |