[arch-commits] Commit in mkvtoolnix/trunk (PKGBUILD mkvtoolnix.install)

Ionut Biru ibiru at archlinux.org
Wed Jul 14 15:24:23 EDT 2010


    Date: Wednesday, July 14, 2010 @ 15:24:21
  Author: ibiru
Revision: 85507

fixes icons in menus. FS#20132

Added:
  mkvtoolnix/trunk/mkvtoolnix.install
Modified:
  mkvtoolnix/trunk/PKGBUILD

--------------------+
 PKGBUILD           |    5 +++--
 mkvtoolnix.install |   14 ++++++++++++++
 2 files changed, 17 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-07-14 19:23:59 UTC (rev 85506)
+++ PKGBUILD	2010-07-14 19:24:21 UTC (rev 85507)
@@ -4,14 +4,15 @@
 
 pkgname=mkvtoolnix
 pkgver=4.1.1
-pkgrel=1
+pkgrel=2
 pkgdesc="Set of tools to create, edit and inspect Matroska files"
 arch=('i686' 'x86_64')
 license=('GPL')
 url="http://www.bunkus.org/videotools/mkvtoolnix/index.html"
-depends=('libmatroska' 'flac' 'libvorbis' 'file' 'boost-libs' 'lzo2')
+depends=('libmatroska' 'flac' 'libvorbis' 'file' 'boost-libs' 'lzo2' 'xdg-utils')
 makedepends=('wxgtk' 'boost')
 optdepends=('wxgtk: mkvmerge,mkvinfo and mmg GUI')
+install=mkvtoolnix.install
 source=("http://www.bunkus.org/videotools/${pkgname}/sources/${pkgname}-${pkgver}.tar.bz2")
 md5sums=('6f38fefd73b8b95de3ea3feb9de4cdd7')
 

Added: mkvtoolnix.install
===================================================================
--- mkvtoolnix.install	                        (rev 0)
+++ mkvtoolnix.install	2010-07-14 19:24:21 UTC (rev 85507)
@@ -0,0 +1,14 @@
+post_install() {
+    xdg-icon-resource forceupdate --theme hicolor &> /dev/null
+    if [ -f usr/bin/update-mime-database ]; then
+        update-mime-database usr/share/mime &> /dev/null
+    fi
+}
+
+post_upgrade() {
+    post_install $1
+}
+
+pre_remove() {
+    post_install $1
+}



More information about the arch-commits mailing list