[arch-commits] Commit in gnormalize/trunk (PKGBUILD gnormalize.desktop)

Alexander Rødseth arodseth at nymeria.archlinux.org
Fri May 24 08:41:56 EDT 2013


    Date: Friday, May 24, 2013 @ 14:41:56
  Author: arodseth
Revision: 91575

upgpkg: gnormalize 0.63-5, fix for FS#35433

Modified:
  gnormalize/trunk/PKGBUILD
Deleted:
  gnormalize/trunk/gnormalize.desktop

--------------------+
 PKGBUILD           |   58 +++++++++++++++++++++++++++++----------------------
 gnormalize.desktop |    9 -------
 2 files changed, 33 insertions(+), 34 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-24 11:02:07 UTC (rev 91574)
+++ PKGBUILD	2013-05-24 12:41:56 UTC (rev 91575)
@@ -1,22 +1,23 @@
 # $Id$
-# Maintainer: Chris Brannon <cmbrannon79 at gmail.com>
+# Maintainer: Alexander Rødseth <rodseth at gmail.com>
+# Contributor: Chris Brannon <cmbrannon79 at gmail.com>
 # Contributor: Corrado Primier <bardo at aur.archlinux.org>
 # Contributor:JZsolt Varadi (karmaxxl) 
 
 pkgname=gnormalize
 pkgver=0.63
-pkgrel=4
-pkgdesc="An audio normalizer, converter, encoder/decoder, ripper, tagger and player"
-arch=(any)
-url="http://gnormalize.sourceforge.net/"
+pkgrel=5
+pkgdesc='Audio normalizer, converter, encoder/decoder, ripper, tagger and player'
+arch=('any')
+url='http://gnormalize.sourceforge.net/'
 license=('GPL')
-depends=(perl cddb_get desktop-file-utils gtk2-perl hicolor-icon-theme)
-makedepends=('xz')
+depends=('perl' 'cddb_get' 'desktop-file-utils' 'gtk2-perl' 'hicolor-icon-theme')
+makedepends=('xz' 'gendesk')
 optdepends=('faac: full MP4 format'
             'flac: FLAC encoding, FLAC playing in conjunction with mplayer'
             'lame: MP3 encoding'
             'mac: full Monkeys Audio Codec support (available in the AUR)'
-            'mpg321: MP3 playing'
+            'mpg123: MP3 playing'
             'mplayer: FLAC/WAV playing'
             'musepack-tools: full Musepack support'
             'perl-mp3-info: MP3 ID3 tags'
@@ -25,27 +26,34 @@
             'cdparanoia: CD ripping'
             'cdrkit: CD ripping - alternative to cdparanoia'
             'wavegain: sound normalization')
-install=gnormalize.install
-source=(http://downloads.sourceforge.net/sourceforge/gnormalize/${pkgname}-${pkgver}.tar.gz
-        gnormalize.desktop)
-md5sums=('25ca7520731e61a8b7f4b7fa61928d54' '81c6dffab2139816919842e042705884')
+install="$pkgname.install"
+source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz")
+sha256sums=('80fd9aa2da8d7fcc88bd180be2adce1aed863bedba7d715144029bd95b61ccb6')
 
+prepare() {
+  cd "$srcdir/$pkgname-$pkgver"
+
+  gendesk -n --pkgname "$pkgname" --pkgdesc "$pkgdesc" --mimetypes \
+  'audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/x-wav;application/x-ogg'
+  lzma -qd gnormalize.1.lzma
+} 
+
 package() {
-  cd "${srcdir}/${pkgname}-${pkgver}"
-  install -Dm755 gnormalize "${pkgdir}/usr/bin/gnormalize"
-  lzma -qd gnormalize.1.lzma
-  install -Dm644 gnormalize.1 "${pkgdir}/usr/share/man/man1/gnormalize.1"
-  install -d "${pkgdir}/usr/share/gnormalize/animations"
-  install -m644 animations/*.gif "${pkgdir}/usr/share/gnormalize/animations/"
-  install -Dm644 README "${pkgdir}/usr/share/doc/gnormalize/README"
-  install -Dm644 icons/gnormalize.png  \
-    "${pkgdir}/usr/share/pixmaps/gnormalize.png"
+  cd "$srcdir/$pkgname-$pkgver"
+
+  install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
+  install -Dm644 "$pkgname.1" "$pkgdir/usr/share/man/man1/$pkgname.1"
+  install -d "$pkgdir/usr/share/$pkgname/animations"
+  install -m644 animations/*.gif "$pkgdir/usr/share/$pkgname/animations/"
+  install -Dm644 README "$pkgdir/usr/share/doc/$pkgname/README"
+  install -Dm644 "icons/$pkgname.png" \
+    "$pkgdir/usr/share/pixmaps/$pkgname.png"
   for i in 16 32 48 ; do
-    install -Dm644 icons/gnormalize-${i}.png \
-      "${pkgdir}/usr/share/icons/hicolor/${i}x${i}/apps/gnormalize.png"
+    install -Dm644 "icons/gnormalize-$i.png" \
+      "$pkgdir/usr/share/icons/hicolor/${i}x$i/apps/$pkgname.png"
   done
-  install -Dm644 "${srcdir}/gnormalize.desktop" \
-    "${pkgdir}/usr/share/applications/gnormalize.desktop"
+  install -Dm644 "$pkgname.desktop" \
+    "$pkgdir/usr/share/applications/$pkgname.desktop"
 }
 
 # vim:set ts=2 sw=2 et:

Deleted: gnormalize.desktop
===================================================================
--- gnormalize.desktop	2013-05-24 11:02:07 UTC (rev 91574)
+++ gnormalize.desktop	2013-05-24 12:41:56 UTC (rev 91575)
@@ -1,9 +0,0 @@
-[Desktop Entry]
-Name=gnormalize
-Comment=Encoder/Decoder, normalize frontend, etc.
-Exec=gnormalize
-Icon=gnormalize
-MimeType=audio/mp3;audio/x-mp3;audio/mpeg;audio/x-mpeg;audio/x-wav;application/x-ogg;
-Categories=GTK;AudioVideo;Player;
-Terminal=false
-Type=Application



More information about the arch-commits mailing list