aboutsummaryrefslogtreecommitdiffstats
path: root/main/py-musicbrainzngs/APKBUILD
blob: ef29ad61a52ae196b9416dcbfe8c88b0bd359e5e (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: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py-musicbrainzngs
pkgver=0.5
pkgrel=0
pkgdesc="Bindings for the MusicBrainz NGS service"
url="https://github.com/alastair/python-musicbrainzngs"
arch="noarch"
license="BSD"
depends="python"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/m/musicbrainzngs/musicbrainzngs-$pkgver.tar.gz"

_builddir="$srcdir"/musicbrainzngs-$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" || return 1
}

md5sums="9e17a181af72d04a291c9a960bc73d44  musicbrainzngs-0.5.tar.gz"
sha256sums="281388ab750d2996e9feca4580fd4215d616a698e02cd6719cb9b8562945c489  musicbrainzngs-0.5.tar.gz"
sha512sums="abd5b29bb8d3a19e70c36816c42b9339dda30334c273d388da4c5509a4b37f1630e74056ae47d913be5f54c4f91d90992cc29a0c78ef33ecc9fa9358e1b17d1e  musicbrainzngs-0.5.tar.gz"