summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 691ce0af6c785c45eb33d66b3a9c6dca7669ea62 (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
65
66
67
68
69
70
71
# Maintainer: Guatavo Alvarez <sl1pkn07@gmail.com>

pkgname=audiotools-git
pkgver=v3.1.1.117.gb40b6cc
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'
            'cdrecord: for CD burning without cuesheets'
            'cdrdao: for CD burning with cuesheets'
            )
conflicts=('audio-tools')
provides=('audio-tools')
source=('git+https://github.com/tuffy/python-audio-tools.git')
sha1sums=('SKIP')

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

prepare() {
  cd python-audio-tools
  sed -e 's|cdio/cdda.h|cdio/paranoia/cdda.h|g' \
      -e 's|cdio/paranoia.h|cdio/paranoia/paranoia.h|g' \
      -i src/cdiomodule.h


  sed -e 's|-m 644|-Dm 644|g' \
      -e 's|all: $(TARGETS)|all: $(MAN_PAGES)|g' \
      -i Makefile -i docs/Makefile
}

build() {
  cd python-audio-tools
  python setup.py build
  cd docs
  make
}

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