This thread contains a patchset. You're looking at the original emails,
but you may wish to use the patch review UI.
Review patch
1
[alpine-aports] [PATCH] testing/mate-icon-theme: Added post-install script to update icon cache
---
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
@@ -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"
@@ -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"
@@ -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
@@ -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@lists.alpinelinux.org
Help: alpine-aports+help@lists.alpinelinux.org
---
On Tue, 23 Dec 2014 12:59:36 +0000
Alan Lacerda <alancordeiro@gmail.com> wrote:
> ---
> 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
> @@ -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"
> @@ -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"
>
> @@ -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
> @@ -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
This should not be needed. We have triggers that should handle this.
-nc
---
Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org
Help: alpine-aports+help@lists.alpinelinux.org
---