diff options
Diffstat (limited to 'desktop/mint-y-icons/mint-y-icons.SlackBuild')
-rw-r--r-- | desktop/mint-y-icons/mint-y-icons.SlackBuild | 40 |
1 files changed, 35 insertions, 5 deletions
diff --git a/desktop/mint-y-icons/mint-y-icons.SlackBuild b/desktop/mint-y-icons/mint-y-icons.SlackBuild index d9c3b98948..0b360ec0f1 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.6.4} -BUILD=${BUILD:-1} +VERSION=${VERSION:-1.7.7} +BUILD=${BUILD:-2} 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 @@ -53,6 +51,35 @@ cd $PKG tar xvf $CWD/$PRGNAM"_"$VERSION.tar.xz --strip-components=1 \ $PRGNAM/usr/ +# Remove the folder-color-switcher folder +rm -r usr/share/folder-color-switcher + +# Remove broken relative symlinks +find $PKG/usr/share/icons -xtype l -delete + +# Add missing icons for various programs +# 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 + + # Icons for BleachBit + 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 + + # Icons for PCManFM-Qt + cp $CWD/icons/22/view-list-icons.svg $PKG/usr/share/icons/Mint-Y-$COLOR/places/22/view-list-icons.svg + cp $CWD/icons/22/view-grid.svg $PKG/usr/share/icons/Mint-Y-$COLOR/places/22/view-grid.svg + cp $CWD/icons/22/view-preview.svg $PKG/usr/share/icons/Mint-Y-$COLOR/places/22/view-preview.svg + cp $CWD/icons/22/view-list-text.svg $PKG/usr/share/icons/Mint-Y-$COLOR/places/22/view-list-text.svg + cp $CWD/icons/22/view-list-details.svg $PKG/usr/share/icons/Mint-Y-$COLOR/places/22/view-list-details.svg + + # "Toggle Preview" icon for Krita + cp $CWD/icons/22/preview.svg $PKG/usr/share/icons/Mint-Y-$COLOR/places/22/preview.svg + cp $CWD/icons/22/document-preview.svg $PKG/usr/share/icons/Mint-Y-$COLOR/places/22/document-preview.svg +done + # install docs & license ( cd $PKG/usr/doc/$PRGNAM-$VERSION @@ -74,4 +101,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 |