aboutsummaryrefslogtreecommitdiffstats
path: root/main/py3-pylast/APKBUILD
blob: 992d30fff37eb312f6b376c447f1655ab7f23722 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-pylast
pkgver=3.0.0
pkgrel=1
pkgdesc="A Python interface to the last.fm API"
url="https://github.com/pylast/pylast"
arch="noarch"
license="Apache"
replaces="py-pylast"
# Requires packages which are not available for test
options="!check"
makedepends="py3-setuptools python3-dev"
source="https://files.pythonhosted.org/packages/source/p/pylast/pylast-$pkgver.tar.gz"
builddir="$srcdir"/pylast-$pkgver

build() {
	cd "$builddir"
	python3 setup.py build
}

check() {
	cd "$builddir"
	python3 setup.py test
}

package() {
	cd "$builddir"
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="550d780031088b28686fd9acacaab90566e9e536bfb5ceda59e2c5c5204d452a9dfa9fc4b5e28782f5c6a75f6084be773dc164ee922fe028cf85e8f74b94f106  pylast-3.0.0.tar.gz"