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

pkgname=audiotools-git
pkgver=3.1.1.129.gde55488d
pkgrel=1
pkgdesc="Collection of audio handling programs which work from the command line (GIT Version)"
arch=('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-setuptools'
  'python-installer'
  'python-wheel'
  'python-build'
)
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 - . | tr -d v)"
}

prepare() {
  cd audiotools

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

build() {
  cd audiotools
  python -m build --wheel --no-isolation
  make -C docs
}

package() {
  cd audiotools
  python -m installer --destdir="${pkgdir}" dist/*.whl
  make -C docs install MAN_PATH="${pkgdir}/usr/share/man"
  rm -fr "${pkgdir}/usr/share/man/man1/audiotools.cfg.5.gz"
}