summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrey Vihrov2015-08-13 18:39:27 +0300
committerAndrey Vihrov2015-08-13 18:39:27 +0300
commitb5e466cfb4d7eb31e402e2e529470c3aff803fda (patch)
treeec767076bd0e8e097c744df68cd56f9764dedebf
parent0eed0411162774200f32a345cb510b699a8c9223 (diff)
downloadaur-b5e466cfb4d7eb31e402e2e529470c3aff803fda.tar.gz
Use xdg-icon-resource instead of gtk-update-icon-cache
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--mist-icon-theme.install20
3 files changed, 8 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8a3da9553203..948006f938fc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = mist-icon-theme
pkgdesc = Mist icon theme
pkgver = 2.32.1
- pkgrel = 4
+ pkgrel = 5
url = https://wiki.gnome.org/GnomeArt
install = mist-icon-theme.install
arch = any
@@ -9,7 +9,7 @@ pkgbase = mist-icon-theme
makedepends = intltool
makedepends = gtk-engines
makedepends = icon-naming-utils
- depends = gtk-update-icon-cache
+ depends = xdg-utils
source = http://ftp.gnome.org/pub/GNOME/sources/gnome-themes/2.32/gnome-themes-2.32.1.tar.bz2
sha256sums = 8601ee24c2e096593221cbd6ebdb6686042225a03c02a01c0d67c163f9febd1a
diff --git a/PKGBUILD b/PKGBUILD
index b6e11842f6a8..131ec7b1bc7e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,12 +4,12 @@
pkgname=mist-icon-theme
pkgver=2.32.1
-pkgrel=4
+pkgrel=5
pkgdesc="Mist icon theme"
arch=('any')
url="https://wiki.gnome.org/GnomeArt"
license=('GPL')
-depends=('gtk-update-icon-cache')
+depends=('xdg-utils')
makedepends=('intltool' 'gtk-engines' 'icon-naming-utils')
install="mist-icon-theme.install"
source=("http://ftp.gnome.org/pub/GNOME/sources/gnome-themes/2.32/gnome-themes-$pkgver.tar.bz2")
diff --git a/mist-icon-theme.install b/mist-icon-theme.install
index 12be2249c204..989465be5e5a 100644
--- a/mist-icon-theme.install
+++ b/mist-icon-theme.install
@@ -1,24 +1,12 @@
-ICONDIR="/usr/share/icons/Mist"
-
-update_icon_cache() {
- echo "Updating GTK icon cache..." || return 1
- gtk-update-icon-cache -f -t "${ICONDIR}" || return 1
-}
-
-
-# arg 1: the new package version
post_install() {
- update_icon_cache
+ xdg-icon-resource forceupdate --theme Mist || return 1
}
-# arg 1: the new package version
-# arg 2: the old package version
post_upgrade() {
- update_icon_cache
+ post_install $1
}
-# arg 1: the old package version
post_remove() {
- update_icon_cache
- rmdir "${ICONDIR}"
+ post_install $1
+ rmdir "/usr/share/icons/Mist"
}