summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fff9cb9677fe2bce85ae359d105fb265470c4300 (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
# Maintainer: Marcos Ferreira <merkkp at gmail dot com>

_gitname="python-azlyrics"
pkgname="${_gitname}-git"
pkgver=f55454e
pkgrel=1
pkgdesc="api & cli app for azlyrics.com"
arch=("any")
url="https://github.com/ffmarcos/python-azlyrics"
license=("GPL")
depends=("python" "python-beautifulsoup4")
makedepends=("git" "python-setuptools")
provides=("${_gitname}")
conflicts=("${_gitname}")
source=("git+https://github.com/mracos/${_gitname}")
md5sums=("SKIP")

pkgver() {
  cd "${_gitname}"
  git describe --tags --long --always | sed 's/^v//;s/-/./;s/-/./g'
}

build() {
  cd "${_gitname}"
  python setup.py build --verbose
}

package() {
  cd "${_gitname}"
  python setup.py install -O1 --skip-build --verbose --root="${pkgdir}/"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

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