X-Original-To: alpine-aports@lists.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from ncopa-desktop.alpinelinux.org (unknown [79.160.13.133]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by mail.alpinelinux.org (Postfix) with ESMTPSA id 3D47EDC006A; Tue, 23 Dec 2014 16:05:59 +0000 (UTC) Date: Tue, 23 Dec 2014 17:05:56 +0100 From: Natanael Copa To: Alan Lacerda Cc: alpine-aports@lists.alpinelinux.org, Alan Lacerda Subject: Re: [alpine-aports] [PATCH] testing/mate-icon-theme: Added post-install script to update icon cache Message-ID: <20141223170556.378cd08e@ncopa-desktop.alpinelinux.org> In-Reply-To: <1419339576-25596-1-git-send-email-alacerda@alpinelinux.org> References: <1419339576-25596-1-git-send-email-alacerda@alpinelinux.org> X-Mailer: Claws Mail 3.11.0 (GTK+ 2.24.23; x86_64-alpine-linux-musl) X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Tue, 23 Dec 2014 12:59:36 +0000 Alan Lacerda 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 ---