/
PKGBUILD
41 lines (36 loc) · 928 Bytes
/
PKGBUILD
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
# Contributor: Johannes Dewender arch at JonnyJD dot net
pkgname=acousticbrainz-client-git
_pkgname=acousticbrainz-client
_python=python
pkgver=r49.e5017ec
pkgrel=1
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=()
conflicts=()
replaces=()
options=()
source=("git+https://github.com/MTG/$_pkgname.git")
md5sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/$_pkgname"
# we have that in essentia-acousticbrainz
sed -i -e "s/, 'streaming_extractor_music'//" 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: