desktop-file-utils: remove generated cache file at pre-remove time.
This commit is contained in:
parent
18466cc214
commit
c97afcd90d
|
@ -1,7 +1,6 @@
|
|||
#
|
||||
# This script re-runs update-desktop-database if package is being updated.
|
||||
#
|
||||
|
||||
if [ "${UPDATE}" = "yes" ]; then
|
||||
case "${ACTION}" in
|
||||
post)
|
||||
|
|
|
@ -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
|
|
@ -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 <xtraeme@gmail.com>"
|
||||
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."
|
||||
|
||||
|
|
Loading…
Reference in New Issue