summaryrefslogtreecommitdiffstats
path: root/desktop/Tela-icon-theme
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/Tela-icon-theme')
-rw-r--r--desktop/Tela-icon-theme/Tela-icon-theme.SlackBuild28
-rw-r--r--desktop/Tela-icon-theme/Tela-icon-theme.info12
-rw-r--r--desktop/Tela-icon-theme/doinst.sh18
-rw-r--r--desktop/Tela-icon-theme/douninst.sh6
-rw-r--r--desktop/Tela-icon-theme/slack-desc2
5 files changed, 37 insertions, 29 deletions
diff --git a/desktop/Tela-icon-theme/Tela-icon-theme.SlackBuild b/desktop/Tela-icon-theme/Tela-icon-theme.SlackBuild
index c5af10cbbc..b9373a376f 100644
--- a/desktop/Tela-icon-theme/Tela-icon-theme.SlackBuild
+++ b/desktop/Tela-icon-theme/Tela-icon-theme.SlackBuild
@@ -2,7 +2,8 @@
# Slackware build script for Tela-icon-theme
-# Copyright 2022 Isaac Yu <isaacyu1@isaacyu1.com>
+# Copyright 2022-2023 Isaac Yu
+# Copyright 2024 Johannes Schoepfer, Germany
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -25,8 +26,8 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM="Tela-icon-theme"
-SRCVER=${SRCVER:-2022-08-28}
-VERSION=${VERSION:-2022_08_28}
+SRCVER=${SRCVER:-2024-04-19}
+VERSION=${VERSION:-2024_04_19}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -50,8 +51,8 @@ cd $TMP
rm -rf $PRGNAM-$SRCVER
tar xvf $CWD/$PRGNAM-$SRCVER.tar.gz
cd $PRGNAM-$SRCVER
-
chown -R root:root .
+chmod -R u+w,go-w,a+rX-st .
# This slackbuild installs the standard color variant by default
# Other color variants are available
@@ -72,9 +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
+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
@@ -82,10 +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
-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
+ 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 de5ae9e76b..dd1f548dfa 100644
--- a/desktop/Tela-icon-theme/Tela-icon-theme.info
+++ b/desktop/Tela-icon-theme/Tela-icon-theme.info
@@ -1,10 +1,10 @@
PRGNAM="Tela-icon-theme"
-VERSION="2022_08_28"
-HOMEPAGE="https://www.pling.com/p/1279924"
-DOWNLOAD="https://github.com/vinceliuice/Tela-icon-theme/archive/2022-08-28/Tela-icon-theme-2022-08-28.tar.gz"
-MD5SUM="bb974d442cecee7a22b4b04d28380920"
+VERSION="2024_04_19"
+HOMEPAGE="https://github.com/vinceliuice/Tela-icon-theme"
+DOWNLOAD="https://github.com/vinceliuice/Tela-icon-theme/archive/2024-04-19/Tela-icon-theme-2024-04-19.tar.gz"
+MD5SUM="8963cb9cefbd8f78778e7d87e5743e35"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
-MAINTAINER="Isaac Yu"
-EMAIL="isaacyu1@isaacyu1.com"
+MAINTAINER="Johannes Schoepfer"
+EMAIL="slackbuilds@schoepfer.info"
diff --git a/desktop/Tela-icon-theme/doinst.sh b/desktop/Tela-icon-theme/doinst.sh
index aea0f894eb..885fb18c31 100644
--- a/desktop/Tela-icon-theme/doinst.sh
+++ b/desktop/Tela-icon-theme/doinst.sh
@@ -1,13 +1,7 @@
-if [ -x /usr/bin/update-desktop-database ]; then
- /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
-fi
-
-if [ -x /usr/bin/update-mime-database ]; then
- /usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1
-fi
-
-if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
- if [ -x /usr/bin/gtk-update-icon-cache ]; then
- /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
+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
-fi
+done
diff --git a/desktop/Tela-icon-theme/douninst.sh b/desktop/Tela-icon-theme/douninst.sh
new file mode 100644
index 0000000000..a3e98625db
--- /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
diff --git a/desktop/Tela-icon-theme/slack-desc b/desktop/Tela-icon-theme/slack-desc
index d7a742fe72..40be4af2dc 100644
--- a/desktop/Tela-icon-theme/slack-desc
+++ b/desktop/Tela-icon-theme/slack-desc
@@ -15,5 +15,5 @@ Tela-icon-theme:
Tela-icon-theme:
Tela-icon-theme:
Tela-icon-theme:
-Tela-icon-theme:
+Tela-icon-theme: https://github.com/vinceliuice/Tela-icon-theme
Tela-icon-theme: