Skip to content

Commit

Permalink
[mplayer2-git] use update-desktop-datebase if available
Browse files Browse the repository at this point in the history
  • Loading branch information
mmonaco committed Apr 17, 2012
1 parent 30119c6 commit 9cb15ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion mplayer2-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ source=()
md5sums=()
arch=('x86_64' 'i686')
backup=("etc/mplayer/codecs.conf" "etc/mplayer/input.conf")
depends=("fribidi" "freetype2" "fontconfig" "desktop-file-utils")
depends=("fribidi" "freetype2" "fontconfig")
# The dependencies here are *required* to build by the default options. fribidi
# is needed for libass. freetype2 and fontconfig are needed for mplayer itself
# (yes, ./configure --help says they are autodetected, but it lies, they need to
Expand Down
8 changes: 6 additions & 2 deletions mplayer2-git/mplayer2-git.install
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ installed for efficient video output.

__EOF__

update-desktop-database -q
if type update-desktop-database &> /dev/null; then
update-desktop-database -q
fi
}

post_upgrade()
Expand All @@ -23,5 +25,7 @@ post_upgrade()

post_remove()
{
update-desktop-database -q
if type update-desktop-database &> /dev/null; then
update-desktop-database -q
fi
}

0 comments on commit 9cb15ea

Please sign in to comment.