Mail archive
alpine-aports

[alpine-aports] [PATCH] testing/mate-icon-theme: Added post-install script to update icon cache

From: Alan Lacerda <alancordeiro_at_gmail.com>
Date: Tue, 23 Dec 2014 12:59:36 +0000

---
 testing/mate-icon-theme/APKBUILD                     | 5 +++--
 testing/mate-icon-theme/mate-icon-theme.post-install | 4 ++++
 2 files changed, 7 insertions(+), 2 deletions(-)
 create mode 100644 testing/mate-icon-theme/mate-icon-theme.post-install
diff --git a/testing/mate-icon-theme/APKBUILD b/testing/mate-icon-theme/APKBUILD
index 09eecda..d8ef4ae 100644
--- a/testing/mate-icon-theme/APKBUILD
+++ b/testing/mate-icon-theme/APKBUILD
_at_@ -2,7 +2,7 @@
 # Maintainer:
 pkgname=mate-icon-theme
 pkgver=1.9.0
-pkgrel=0
+pkgrel=1
 pkgdesc="MATE desktop icons"
 url="https://github.com/mate-desktop/mate-icon-theme"
 arch="noarch"
_at_@ -10,7 +10,7 @@ license="GPL2"
 depends="mate-common"
 depends_dev=""
 makedepends="icon-naming-utils intltool"
-install=""
+install="mate-icon-theme.post-install"
 subpackages=""
 source="http://pub.mate-desktop.org/releases/1.9/$pkgname-$pkgver.tar.xz"
 
_at_@ -38,6 +38,7 @@ build() {
 package() {
 	cd "$_builddir"
 	make DESTDIR="${pkgdir}" install || return 1
+	rm -f "${pkgdir}/usr/share/icons/mate/icon-theme.cache"
 }
 
 md5sums="acee85ec61cc8453569622f77e385c68  mate-icon-theme-1.9.0.tar.xz"
diff --git a/testing/mate-icon-theme/mate-icon-theme.post-install b/testing/mate-icon-theme/mate-icon-theme.post-install
new file mode 100644
index 0000000..723be69
--- /dev/null
+++ b/testing/mate-icon-theme/mate-icon-theme.post-install
_at_@ -0,0 +1,4 @@
+#!/bin/sh
+
+gtk-update-icon-cache -q -t -f /usr/share/icons/mate 
+gtk-update-icon-cache -q -t -f /usr/share/icons/menta 
-- 
2.1.3
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Tue Dec 23 2014 - 12:59:36 GMT