summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8fa19e46b1875665518597d1501801be00d8e68b (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
# Maintainer: LaƩrcio de Sousa <laerciosousa@sme-mogidascruzes.sp.gov.br>
pkgname=python2-pycha-hg
pkgver=287.e3e270a0e7ae
pkgrel=1
pkgdesc="Pycha is a very simple Python package for drawing charts"
arch=('any')
url="http://bitbucket.org/lgs/pycha/"
license=('LGPL')
depends=('python2')
makedepends=('python2-distribute' 'mercurial')
source=('hg+https://bitbucket.org/lgs/pycha')
md5sums=('SKIP')
_hgrepo="pycha"

pkgver() {
  cd $srcdir/${_hgrepo}
  hg update > /dev/null
  echo $(hg identify -n).$(hg identify -i)
}

package() {
  cd "$srcdir/$_hgrepo"
  python2 setup.py install --root=$pkgdir
}