summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8f35e5764b09f32b21790a8daf1bd8a55c49c872 (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
63
64
# Maintainer: Guatavo Alvarez <sl1pkn07@gmail.com>

pkgname=audiotools-git
pkgver=v3.1.1.127.g88d31ac
pkgrel=1
pkgdesc="Collection of audio handling programs which work from the command line (GIT Version)"
arch=('i686' 'x86_64')
url='http://audiotools.sourceforge.net'
license=('GPL')
depends=('python'
         'libcdio-paranoia'
         'libpulse'
         'opusfile'
         'twolame'
         'mpg123'
         'lame'
         'wavpack'
         'libdvd-audio-git'
         )
makedepends=('git'
             'python-distribute'
             )
optdepends=('faad2: Decoding AAC'
            'faac: Encoding AAC'
            'neroaacdec: Decoding AAC (preferred)'
            'neroaacenc: Encoding AAC (preferred)'
            'mp3gain: For MP3 Replay Gain support'
            'vorbisgain: For OGG Replay Gain support'
            'python-pillow: for Coverview interface'
            'pygtk: for Coverview interface (GTK)'
            'python-pmw: Coverview interface (Tk)'
            'python-urwid: interactive modes'
            'cdrkit: for CD burning without cuesheets'
            'cdrtools: for CD burning without cuesheets'
            'cdrdao: for CD burning with cuesheets'
            )
conflicts=('audiotools')
provides=('audiotools')
source=('audiotools::git+https://github.com/tuffy/python-audio-tools.git')
sha1sums=('SKIP')

pkgver() {
  cd audiotools
  echo "$(git describe --long --tags | tr - .)"
}

prepare() {
  cd audiotools

  sed -e 's|-m 644|-Dm 644|g' \
      -i Makefile -i docs/Makefile
}

build() {
  cd audiotools
  python setup.py build
  make -C docs
}

package() {
  cd audiotools
  python setup.py install --root="${pkgdir}" --optimize=1
  make -C docs install MAN_PATH="${pkgdir}/usr/share/man"
}