summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c07644add75bc13a8d3ab52053c421967388b50c (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=mwcleric
pkgname=python-mwcleric-git
pkgdesc="General purpose tools for MediaWiki editing using Python"
pkgver=237876c
pkgrel=1
arch=('any')
url="https://github.com/RheingoldRiver/mwcleric"
license=('MIT')
depends=('python' 'python-mwparserfromhell' 'python-pytz' 'python-mwclient')
makedepends=('git' 'python-setuptools')
source=('git+https://github.com/RheingoldRiver/mwcleric')
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"
}