summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7477b5314f744c156e523d03c23d4d8c346efb90 (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
# Contributor: Johannes Dewender arch at JonnyJD dot net
pkgname=acousticbrainz-client-git
_pkgname=acousticbrainz-client
_python=python
pkgver=0.1.r6.g6c54a52
pkgrel=2
pkgdesc="client to upload data to an acousticbrainz server"
arch=('any')
url="http://acousticbrainz.org/"
license=('GPL3')
depends=('essentia-acousticbrainz' 'python-requests')
makedepends=('git')
provides=("$_pkgname=$pkgver")
conflicts=("$_pkgname")
options=()
source=("git+https://github.com/MTG/$_pkgname.git")
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_pkgname"
  git describe --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

prepare() {
  cd "$srcdir/$_pkgname"
  # we have that in essentia-acousticbrainz
  sed -i -e "/streaming_extractor_music/d" setup.py
}

build() {
  cd "$srcdir/$_pkgname"
  $_python setup.py build
}

package() {
  cd "$srcdir/$_pkgname"
  $_python setup.py install --root="$pkgdir/" --optimize=1
}

# vim:set ts=2 sw=2 et: