Date: Tuesday, May 21, 2013 @ 18:11:46
  Author: eric
Revision: 186169

upgpkg: quodlibet 2.5.1-2

Remove MimeType from exfalso's desktop file (close FS#35375)

Modified:
  quodlibet/trunk/PKGBUILD
  quodlibet/trunk/quodlibet.install

-------------------+
 PKGBUILD          |   26 +++++++++++++++-----------
 quodlibet.install |    1 -
 2 files changed, 15 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2013-05-21 15:09:21 UTC (rev 186168)
+++ PKGBUILD    2013-05-21 16:11:46 UTC (rev 186169)
@@ -4,30 +4,34 @@
 pkgbase=quodlibet
 pkgname=('quodlibet' 'quodlibet-plugins')
 pkgver=2.5.1
-_pkgver=2.5.1
-pkgrel=1
+pkgrel=2
 arch=('any')
 license=('GPL2')
 url="http://code.google.com/p/quodlibet/";
 makedepends=('intltool' 'python2-gobject2' 'gtk-update-icon-cache'
-             'hicolor-icon-theme' 'desktop-file-utils')
+             'hicolor-icon-theme')
 options=('!makeflags')
-source=(https://quodlibet.googlecode.com/files/$pkgbase-$_pkgver.tar.gz
-        
https://quodlibet.googlecode.com/files/$pkgbase-plugins-$_pkgver.tar.gz)
+source=(https://quodlibet.googlecode.com/files/$pkgbase-$pkgver.tar.gz
+        https://quodlibet.googlecode.com/files/$pkgbase-plugins-$pkgver.tar.gz)
 sha1sums=('3897109ca47a0d59dc3c18a176b10feeccc21afe'
           'e23206be3322a9b79cd0a70448fafeeb0e02a58a')
 
+prepare() {
+  cd ${pkgbase}-${pkgver}
+  sed -i 's/env python/env python2/' exfalso.py quodlibet.py \
+    ../${pkgbase}-plugins-${pkgver}/songsmenu/replaygain.py
+  sed -i '/MimeType=inode\/directory;/d' exfalso.desktop.in
+}
+
 build() {
-  cd "${srcdir}/${pkgbase}-${_pkgver}"
-  sed -i 's/env python/env python2/' exfalso.py quodlibet.py \
-    ../${pkgbase}-plugins-${_pkgver}/songsmenu/replaygain.py
+  cd ${pkgbase}-${pkgver}
   python2 setup.py build
 }
 
 package_quodlibet() {
   pkgdesc="An audio library tagger, manager and player"
   depends=('gstreamer0.10-python' 'gstreamer0.10-base-plugins' 
'gstreamer0.10-good-plugins'
-           'gstreamer0.10-ugly-plugins' 'mutagen' 'pygtk' 'hicolor-icon-theme' 
'desktop-file-utils')
+           'gstreamer0.10-ugly-plugins' 'mutagen' 'pygtk' 'hicolor-icon-theme')
   optdepends=('gstreamer0.10-ffmpeg: for ffmpeg (ASF/WMA) support'
               'gstreamer0.10-bad-plugins: for MPEG-4 (AAC) and Musepack 
support'
               'python2-dbus: for dbus support'
@@ -39,7 +43,7 @@
               'media-player-info: for media devices support')
   install=quodlibet.install
 
-  cd "${srcdir}/${pkgbase}-${_pkgver}"
+  cd ${pkgbase}-${pkgver}
   python2 setup.py install --prefix="${pkgdir}/usr"
 }
 
@@ -55,7 +59,7 @@
              'zeitgeist: for "Event Logging" plugin'
               'gstreamer0.10-bad-plugins: for "Audio Pitch/Speed" plugin')
 
-  cd "${srcdir}/${pkgbase}-plugins-${_pkgver}"
+  cd ${pkgbase}-plugins-${pkgver}
   install -d "${pkgdir}/usr/lib/python2.7/site-packages/quodlibet/plugins"
   cp -r editing events gstreamer playorder songsmenu 
"${pkgdir}/usr/lib/python2.7/site-packages/quodlibet/plugins"
 }

Modified: quodlibet.install
===================================================================
--- quodlibet.install   2013-05-21 15:09:21 UTC (rev 186168)
+++ quodlibet.install   2013-05-21 16:11:46 UTC (rev 186169)
@@ -1,5 +1,4 @@
 post_install() {
-  update-desktop-database -q
   gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
 }
 

Reply via email to