summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 428bfe78f8c99791c966458e7ad6319bab6c14c2 (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
# Maintainer: Hendrik Matvejev <hendrik.matvejev@gmail.com>

pkgname=python-lyricsgenius
_name=lyricsgenius
pkgver=3.0.0
pkgrel=1
pkgdesc="A Python client for the Genius.com API, that provides a simple interface to the song, artist, and lyrics data stored on Genius.com"
arch=('any')
url="https://github.com/johnwmillr/LyricsGenius"
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
checkdepends=('python-nose')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz" "https://raw.githubusercontent.com/johnwmillr/LyricsGenius/master/LICENSE.txt")
md5sums=('736bb91362732bfff997dc9c6ecbd8d0'
         '9323889b44da74ae0530d54638ff53e8')

build() {
  cd $_name-$pkgver
  python setup.py build
}

package() {
  depends=('python-beautifulsoup4' 'python-requests')

  cd $_name-$pkgver
  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
  cd $srcdir
  install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE.txt"
}