From fcce4e670cd2d81990b3f50e8a682b44d40a73cc Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Tue, 2 Sep 2014 06:41:22 -0300 Subject: remove parabola suffix and add complex pkgrel on the packages --- libre/gnormalize/PKGBUILD | 60 +++++++++++++++++++++++++++++++++++++ libre/gnormalize/gnormalize.desktop | 9 ++++++ libre/gnormalize/gnormalize.install | 14 +++++++++ 3 files changed, 83 insertions(+) create mode 100644 libre/gnormalize/PKGBUILD create mode 100644 libre/gnormalize/gnormalize.desktop create mode 100644 libre/gnormalize/gnormalize.install (limited to 'libre/gnormalize') diff --git a/libre/gnormalize/PKGBUILD b/libre/gnormalize/PKGBUILD new file mode 100644 index 000000000..28765dbdc --- /dev/null +++ b/libre/gnormalize/PKGBUILD @@ -0,0 +1,60 @@ +# $Id: PKGBUILD 91575 2013-05-24 12:41:56Z arodseth $ +# Maintainer (Arch): Alexander Rødseth +# Contributor (Arch): Chris Brannon +# Contributor (Arch): Corrado Primier +# Contributor (Arch):JZsolt Varadi (karmaxxl) +# Maintainer: André Silva + +pkgname=gnormalize +pkgver=0.63 +pkgrel=5.parabola1 +pkgdesc='Audio normalizer, converter, encoder/decoder, ripper, tagger and player, without nonfree faac and mac recommendation' +arch=('any') +url='http://gnormalize.sourceforge.net/' +license=('GPL') +depends=('perl' 'cddb_get' 'desktop-file-utils' 'gtk2-perl' 'hicolor-icon-theme') +makedepends=('xz' 'gendesk') +optdepends=('flac: FLAC encoding, FLAC playing in conjunction with mplayer' + 'lame: MP3 encoding' + 'mpg321: MP3 playing' + 'mplayer: FLAC/WAV playing' + 'musepack-tools: full Musepack support' + 'perl-mp3-info: MP3 ID3 tags' + 'vorbis-tools: full OGG Vorbis support' + 'cdcd: CD playing' + 'cdparanoia: CD ripping' + 'cdrkit: CD ripping - alternative to cdparanoia' + 'wavegain: sound normalization') +replaces=("${pkgname}-libre" "${pkgname}-parabola") +conflicts=("${pkgname}-libre" "${pkgname}-parabola") +install=gnormalize.install +source=("http://downloads.sourceforge.net/sourceforge/gnormalize/${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 "$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/$pkgname.png" + done + install -Dm644 "$pkgname.desktop" \ + "$pkgdir/usr/share/applications/$pkgname.desktop" +} + +# vim:set ts=2 sw=2 et: diff --git a/libre/gnormalize/gnormalize.desktop b/libre/gnormalize/gnormalize.desktop new file mode 100644 index 000000000..4d4061308 --- /dev/null +++ b/libre/gnormalize/gnormalize.desktop @@ -0,0 +1,9 @@ +[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 diff --git a/libre/gnormalize/gnormalize.install b/libre/gnormalize/gnormalize.install new file mode 100644 index 000000000..ef533df53 --- /dev/null +++ b/libre/gnormalize/gnormalize.install @@ -0,0 +1,14 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + update-desktop-database -q +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} + +# vim:set ts=2 sw=2 et: -- cgit v1.2.3