Fixed usage of gtk-* commands in XBMC's .install script.

This commit is contained in:
Adrian Chaves Fernandez (Gallaecio) 2013-05-06 08:26:16 +00:00
parent a2781c4a7d
commit 4ee6967049
2 changed files with 4 additions and 8 deletions

View File

@ -4,7 +4,7 @@ _prefix=/usr
pkgname=xbmc
pkgver=12.2
pkgrel=1
pkgrel=2
pkgdesc="XBMC Media Center"
arch=('x86_64')
url="http://xbmc.org"

View File

@ -1,16 +1,12 @@
post_install() {
[[ $(type -p gtk-update-icon-cache) ]] && /usr/bin/gtk-update-icon-cache -qtf usr/share/icons/hicolor
[[ $(type -p update-desktop-database) ]] && /usr/bin/update-desktop-database -q usr/share/applications
/bin/true
/usr/bin/update-desktop-database -q usr/share/applications
}
post_upgrade() {
post_install $1
/bin/true
post_install
}
post_remove() {
post_install $1
/bin/true
post_install
}