aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-discogs-client/APKBUILD
blob: fc52b5e62d6afbc0cba9d90931bdc9326ecdcd29 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=py-discogs-client
pkgver=2.0.2
pkgrel=0
pkgdesc="Official Python API client for Discogs"
url="https://github.com/discogs/discogs_client"
arch="noarch"
license="BSD"
depends="python2 py-requests py-oauth2"
depends_dev=""
makedepends="python2-dev py-setuptools"
install=""
subpackages=""
source="https://files.pythonhosted.org/packages/source/d/discogs-client/discogs-client-$pkgver.tar.gz"
_builddir="$srcdir"/discogs-client-$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"
	python2 setup.py build || return 1
}

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

md5sums="2cc57e1d134aa93404e779b9311676fa  discogs-client-2.0.2.tar.gz"
sha256sums="0a3616a818dd9fa61a61c3d9731d176e9123130d1b1b97a6beee63b4c72306b7  discogs-client-2.0.2.tar.gz"
sha512sums="d562dda57ac3f80f82ae03576d201888a6f0a71362281b62e48def368b9a31b3e3249b784f20da4ca89fa672b6053f9cd27ca66b2fb094321cf803274975b7b2  discogs-client-2.0.2.tar.gz"