summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0fe4d2fc084b608f6f73dc07c694ec535e1b2128 (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
# Maintainer: Guillaume Hayot <ghayot@postblue.info>
# Contributor: Arvedui <arvedui@posteo.de>
# Contributor: Marc Plano-Lesay <marc.planolesay@gmail.com>
# Contributor: Joost Bremmer <toost.b@gmail.com>

pkgname=python-discogs-client
pkgver=2.3.0
pkgrel=2
pkgdesc="This is the official Discogs API client for Python. You can use it to query the Discogs music database for metadata on artists, releases, and more."
depends=('python-six' 'python-requests' 'python-oauthlib')
makedepends=('python-setuptools')
arch=('any')
# PyPI doesn't ship a license so we have to get it from GitHub
source=(discogs-client-$pkgver.tar.gz::https://files.pythonhosted.org/packages/f1/25/466ceb79d1da1f064765eceab842dbd35a1b7fb2e8f6be75d977bc0dda67/${pkgname#python-}-${pkgver}.tar.gz
        LICENSE::https://raw.githubusercontent.com/discogs/discogs_client/master/LICENSE)
md5sums=('b055618816d8bcf09c1409a30a29c3a4'
         'c1e6695335325feb11337315fb930f21')
url="https://github.com/discogs/discogs_client"
license=('custom')

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

  cd $srcdir
  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim: set ts=2 sw=2 et: