desktop-file-utils: remove generated cache file at pre-remove time.
This commit is contained in:
parent
18466cc214
commit
c97afcd90d
3 changed files with 13 additions and 5 deletions
|
@ -1,7 +1,6 @@
|
||||||
#
|
#
|
||||||
# This script re-runs update-desktop-database if package is being updated.
|
# This script re-runs update-desktop-database if package is being updated.
|
||||||
#
|
#
|
||||||
|
|
||||||
if [ "${UPDATE}" = "yes" ]; then
|
if [ "${UPDATE}" = "yes" ]; then
|
||||||
case "${ACTION}" in
|
case "${ACTION}" in
|
||||||
post)
|
post)
|
||||||
|
|
10
srcpkgs/desktop-file-utils/REMOVE
Normal file
10
srcpkgs/desktop-file-utils/REMOVE
Normal file
|
@ -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'.
|
# Template build file for 'desktop-file-utils'.
|
||||||
pkgname=desktop-file-utils
|
pkgname=desktop-file-utils
|
||||||
version=0.20
|
version=0.20
|
||||||
homepage="http://www.freedesktop.org/wiki/Software/desktop-file-utils"
|
revision=2
|
||||||
distfiles="http://www.freedesktop.org/software/$pkgname/releases/$pkgname-$version.tar.xz"
|
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
makedepends="pkg-config glib-devel"
|
makedepends="pkg-config glib-devel"
|
||||||
revision=1
|
|
||||||
short_desc="Utilities to manage desktop entries"
|
short_desc="Utilities to manage desktop entries"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="GPL-2"
|
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
|
checksum=a7507379859cc483f1c64fbdb569f722c75e3af7c3f91bcdc239ff9dacd24f49
|
||||||
long_desc="
|
long_desc="
|
||||||
desktop-file-utils contains a couple of command line utilities for working
|
desktop-file-utils contains a couple of command line utilities for working
|
||||||
with desktop entries and the applications database. More specifically,
|
with desktop entries and the applications database. More specifically,
|
||||||
it contains the update-desktop-database utility, used to rebuild the database
|
it contains the update-desktop-database utility, used to rebuild the database
|
||||||
that connects MIME types to applications."
|
that connects MIME types to applications."
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue