summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 15a100a8dcd1401af494ea70ab53a60185e08770 (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
# Maintainer: Shane "SajeOne" Brown <contact@shane-brown.ca>
pkgname=python-spotipy-git
_pkgname=spotipy
pkgver=r568.48d04f3
pkgrel=1
pkgdesc='Simple client for the Spotify Web API'
arch=('any')
url="https://github.com/plamere/spotipy"
license=('MIT')
provides=('python-spotipy')
depends=('python' 'python-requests>=1.0' 'python-simplejson')
makedepends=('python' 'python-setuptools')
source=("spotipy::git+https://github.com/plamere/spotipy.git")
md5sums=('SKIP')

pkgver() {
	cd "$_pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
	cd "${srcdir}/${_pkgname}"
	python setup.py install --root="${pkgdir}/" --optimize=1

	install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}