aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-pyacoustid/APKBUILD
blob: 4ebc19574cbdb235b3e91bd3192fd3139fa4d3b3 (plain) (blame)
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: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py-pyacoustid
pkgver=1.1.0
pkgrel=1
pkgdesc="Bindings for Chromaprint acoustic fingerprinting and the Acoustid API"
url="https://github.com/sampsyo/pyacoustid"
arch="noarch"
license="MIT"
depends="python chromaprint py-requests py-audioread"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="https://pypi.python.org/packages/source/p/pyacoustid/pyacoustid-$pkgver.tar.gz"

_builddir="$srcdir"/pyacoustid-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() {
	cd "$_builddir"
	python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 || return 1
}

md5sums="b27c714d530300b917eb869726334226  pyacoustid-1.1.0.tar.gz"
sha256sums="0117039cb116af245e6866e8e8bf3c9c8b2853ad087142bd0c2dfc0acc09d452  pyacoustid-1.1.0.tar.gz"
sha512sums="16b1c6cc1c27c02847b43c953e0fa9d525652b0583e321aaceb2f0c4bbea2e2f6956a6f0a95b1cd61124dc17e0751819ab223513ec22f27cf83246199ea8999d  pyacoustid-1.1.0.tar.gz"