From 2a0e5b16de8716501dcda8cac23844fff6dfdce9 Mon Sep 17 00:00:00 2001 From: Johannes Schoepfer Date: Sun, 2 Jul 2023 21:03:40 +0700 Subject: desktop/Tela-icon-theme: Updated for version 2023_06_25. Signed-off-by: Willy Sudiarto Raharjo --- desktop/Tela-icon-theme/Tela-icon-theme.SlackBuild | 30 +++++++++++----------- desktop/Tela-icon-theme/Tela-icon-theme.info | 6 ++--- desktop/Tela-icon-theme/doinst.sh | 7 +++++ desktop/Tela-icon-theme/douninst.sh | 6 +++++ 4 files changed, 31 insertions(+), 18 deletions(-) create mode 100644 desktop/Tela-icon-theme/doinst.sh create mode 100644 desktop/Tela-icon-theme/douninst.sh diff --git a/desktop/Tela-icon-theme/Tela-icon-theme.SlackBuild b/desktop/Tela-icon-theme/Tela-icon-theme.SlackBuild index 5a168de72381..02265f1952be 100644 --- a/desktop/Tela-icon-theme/Tela-icon-theme.SlackBuild +++ b/desktop/Tela-icon-theme/Tela-icon-theme.SlackBuild @@ -26,8 +26,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM="Tela-icon-theme" -SRCVER=${SRCVER:-2023-02-03} -VERSION=${VERSION:-2023_02_03} +SRCVER=${SRCVER:-2023-06-25} +VERSION=${VERSION:-2023_06_25} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -73,17 +73,15 @@ if [ "${UBUNTU:-no}" == yes ] ; then UBUNTU=ubuntu ; fi # This slackbuild will not install with the following command: # ./install.sh -a -d $PKG/usr/share/icons # Instead, you will have to select additional color variants by passing variables to the script -mkdir -p $PKG/usr/share/icons -./install.sh standard $BLACK $BLUE $BROWN $GREEN $GREY $ORANGE $PINK $PURPLE $RED $YELLOW \ - $MANJARO $UBUNTU -d $PKG/usr/share/icons - -# Remove broke symlinks -rm $PKG/usr/share/icons/Tela-dark/22/devices/uav.svg -rm $PKG/usr/share/icons/Tela-dark/24/devices/uav.svg -rm $PKG/usr/share/icons/Tela/22/devices/uav.svg -rm $PKG/usr/share/icons/Tela/24/devices/uav.svg -rm $PKG/usr/share/icons/Tela/24/panel/org.xfce.panel.showdesktop.svg -rm $PKG/usr/share/icons/Tela/24/panel/org.xfce.xfdesktop.svg +sed -i '/gtk-update-icon-cache/d' install.sh +./install.sh standard $BLACK $BLUE $BROWN $GREEN $GREY $ORANGE $PINK \ + $PURPLE $RED $YELLOW $MANJARO $UBUNTU -d $PKG/usr/share/icons + +# Remove dangling symlinks +find $PKG/usr/share/icons -xtype l -delete + +# hardlink duplicates +hardlink -c $PKG/usr/share/icons mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp AUTHORS COPYING README.md $PKG/usr/doc/$PRGNAM-$VERSION @@ -91,9 +89,11 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc - 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 + sed 's,cd \./,cd ,' > $PKG/install/doinst.sh +cat $CWD/doinst.sh >> $PKG/install/doinst.sh +cat $CWD/douninst.sh >> $PKG/install/douninst.sh + /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/desktop/Tela-icon-theme/Tela-icon-theme.info b/desktop/Tela-icon-theme/Tela-icon-theme.info index 5ee5c8efef44..1a68573c5906 100644 --- a/desktop/Tela-icon-theme/Tela-icon-theme.info +++ b/desktop/Tela-icon-theme/Tela-icon-theme.info @@ -1,8 +1,8 @@ PRGNAM="Tela-icon-theme" -VERSION="2023_02_03" +VERSION="2023_06_25" HOMEPAGE="https://github.com/vinceliuice/Tela-icon-theme" -DOWNLOAD="https://github.com/vinceliuice/Tela-icon-theme/archive/2023-02-03/Tela-icon-theme-2023-02-03.tar.gz" -MD5SUM="8a336a7eb8583ef34bfd84868ca04d26" +DOWNLOAD="https://github.com/vinceliuice/Tela-icon-theme/archive/2023-06-25/Tela-icon-theme-2023-06-25.tar.gz" +MD5SUM="ec9c3b1c0fcca8fd383c9e63b25bb3e5" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" diff --git a/desktop/Tela-icon-theme/doinst.sh b/desktop/Tela-icon-theme/doinst.sh new file mode 100644 index 000000000000..885fb18c3168 --- /dev/null +++ b/desktop/Tela-icon-theme/doinst.sh @@ -0,0 +1,7 @@ +for theme_dir in usr/share/icons/Tela usr/share/icons/Tela-dark; do + if [ -e $theme_dir/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f $theme_dir >/dev/null 2>&1 + fi + fi +done diff --git a/desktop/Tela-icon-theme/douninst.sh b/desktop/Tela-icon-theme/douninst.sh new file mode 100644 index 000000000000..a3e98625db27 --- /dev/null +++ b/desktop/Tela-icon-theme/douninst.sh @@ -0,0 +1,6 @@ +for theme_dir in usr/share/icons/Tela usr/share/icons/Tela-dark; do + if [ -e $theme_dir/icon-theme.cache ]; then + rm $theme_dir/icon-theme.cache + rmdir $theme_dir + fi +done -- cgit v1.2.3