From c97afcd90d126d060f46e2287ef2a2720dbfecd8 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 5 Jun 2012 23:16:20 +0200 Subject: [PATCH] desktop-file-utils: remove generated cache file at pre-remove time. --- srcpkgs/desktop-file-utils/INSTALL | 1 - srcpkgs/desktop-file-utils/REMOVE | 10 ++++++++++ srcpkgs/desktop-file-utils/template | 7 +++---- 3 files changed, 13 insertions(+), 5 deletions(-) create mode 100644 srcpkgs/desktop-file-utils/REMOVE diff --git a/srcpkgs/desktop-file-utils/INSTALL b/srcpkgs/desktop-file-utils/INSTALL index 39a231e8210..5d558f8eba3 100644 --- a/srcpkgs/desktop-file-utils/INSTALL +++ b/srcpkgs/desktop-file-utils/INSTALL @@ -1,7 +1,6 @@ # # This script re-runs update-desktop-database if package is being updated. # - if [ "${UPDATE}" = "yes" ]; then case "${ACTION}" in post) diff --git a/srcpkgs/desktop-file-utils/REMOVE b/srcpkgs/desktop-file-utils/REMOVE new file mode 100644 index 00000000000..998cb82168e --- /dev/null +++ b/srcpkgs/desktop-file-utils/REMOVE @@ -0,0 +1,10 @@ +# +# This script removes the mimeinfo.cache file before removing pkg. +# +if [ "$UPDATE" = "no" ]; then + case "${ACTION}" in + pre) + rm -f usr/share/applications/mimeinfo.cache + ;; + esac +fi diff --git a/srcpkgs/desktop-file-utils/template b/srcpkgs/desktop-file-utils/template index ccccbd847eb..f6dbb8fb429 100644 --- a/srcpkgs/desktop-file-utils/template +++ b/srcpkgs/desktop-file-utils/template @@ -1,18 +1,17 @@ # Template build file for 'desktop-file-utils'. pkgname=desktop-file-utils version=0.20 -homepage="http://www.freedesktop.org/wiki/Software/desktop-file-utils" -distfiles="http://www.freedesktop.org/software/$pkgname/releases/$pkgname-$version.tar.xz" +revision=2 build_style=gnu-configure makedepends="pkg-config glib-devel" -revision=1 short_desc="Utilities to manage desktop entries" maintainer="Juan RP " license="GPL-2" +homepage="http://www.freedesktop.org/wiki/Software/desktop-file-utils" +distfiles="http://www.freedesktop.org/software/$pkgname/releases/$pkgname-$version.tar.xz" checksum=a7507379859cc483f1c64fbdb569f722c75e3af7c3f91bcdc239ff9dacd24f49 long_desc=" desktop-file-utils contains a couple of command line utilities for working with desktop entries and the applications database. More specifically, it contains the update-desktop-database utility, used to rebuild the database that connects MIME types to applications." -