summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e2b3b05a52649a6d50eac71485c4952641cae228 (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
35
# Maintainer: Philip Nelson <7PMNelson@gmail.com>
_pkgname=mwrogue 
pkgname=python-mwrogue-git
pkgdesc="A library is a client for connecting to, and occasionally editing, the Fandom/Gamepedia esports wikis"
pkgver=1cae5a2
pkgrel=1
arch=('any')
url="https://github.com/RheingoldRiver/mwrogue"
license=('MIT')
depends=('python' 'python-mwparserfromhell' 'python-pytz' 'python-mwclient' 'python-mwcleric-git' 'python-unidecode')
makedepends=('git' 'python-setuptools')
source=('git+https://github.com/RheingoldRiver/mwrogue')
md5sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  git describe --tags --always | sed 's|^v||;s|\([^-]*-g\)|r\1|;s|-|.|g'
}

build() {
  cd "$_pkgname"
  python setup.py build
}

check() {
  cd "$_pkgname"
  python setup.py test
}

package() {
  cd "$_pkgname"
  python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}