[arch-commits] Commit in desktop-file-utils/trunk (2 files)
Allan McRae
allan at archlinux.org
Wed Apr 27 10:59:40 UTC 2016
Date: Wednesday, April 27, 2016 @ 12:59:40
Author: allan
Revision: 266203
upgpkg: desktop-file-utils 0.22-2
add update-desktop-database hook
Added:
desktop-file-utils/trunk/update-desktop-database.hook
Modified:
desktop-file-utils/trunk/PKGBUILD
------------------------------+
PKGBUILD | 10 +++++++---
update-desktop-database.hook | 11 +++++++++++
2 files changed, 18 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2016-04-27 10:42:35 UTC (rev 266202)
+++ PKGBUILD 2016-04-27 10:59:40 UTC (rev 266203)
@@ -4,14 +4,16 @@
pkgname=desktop-file-utils
pkgver=0.22
-pkgrel=1
+pkgrel=2
pkgdesc="Command line utilities for working with desktop entries"
arch=('i686' 'x86_64')
url="http://www.freedesktop.org/wiki/Software/desktop-file-utils"
license=('GPL')
depends=('glib2')
-source=(http://www.freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-${pkgver}.tar.xz)
-sha256sums=('843532672692f98e9b2d6ae6cc8658da562dfde1606c7f33d9d227a344de56c5')
+source=(http://www.freedesktop.org/software/desktop-file-utils/releases/desktop-file-utils-${pkgver}.tar.xz
+ update-desktop-database.hook)
+sha256sums=('843532672692f98e9b2d6ae6cc8658da562dfde1606c7f33d9d227a344de56c5'
+ '2be5efa6c93f89691d106c086ef392e5dbf2839e2de2afc43a7f616f55b2a81d')
build() {
cd "${srcdir}/desktop-file-utils-${pkgver}"
@@ -22,4 +24,6 @@
package() {
cd "${srcdir}/desktop-file-utils-${pkgver}"
make DESTDIR="${pkgdir}" install
+
+ install -Dm644 "$srcdir"/update-desktop-database.hook "$pkgdir"/usr/share/libalpm/hooks/update-desktop-database.hook
}
Added: update-desktop-database.hook
===================================================================
--- update-desktop-database.hook (rev 0)
+++ update-desktop-database.hook 2016-04-27 10:59:40 UTC (rev 266203)
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Operation = Remove
+Target = usr/share/applications/*.desktop
+
+[Action]
+Description = Updating the desktop file MIME type cache...
+When = PostTransaction
+Exec = /usr/bin/update-desktop-database --quiet
More information about the arch-commits
mailing list