summaryrefslogtreecommitdiff
path: root/libre/gnormalize-libre/PKGBUILD
blob: de98db9b0990350e62e82db6f842fce08f97fda3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# $Id: PKGBUILD 91575 2013-05-24 12:41:56Z arodseth $
# Maintainer: Alexander Rødseth <rodseth@gmail.com>
# Contributor: Chris Brannon <cmbrannon79@gmail.com>
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
# Contributor:JZsolt Varadi (karmaxxl) 
# Maintainer (Parabola): André Silva <emulatorman@parabola.nu>

_pkgname=gnormalize
pkgname=gnormalize-libre
pkgver=0.63
pkgrel=5
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)
conflicts=($_pkgname)
provides=($_pkgname=$pkgver)
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: