diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-02-18 01:56:34 +0000 |
commit | 8185891e28635bdb83fdf4ba4391030912dae596 (patch) | |
tree | 66a946535bdd228514750233b2cc99dd1866ff64 /pcr/python2-pycha/PKGBUILD | |
parent | 60a11f87366fdfbd114cdc91ff813518858e5f8d (diff) |
Tue Feb 18 01:56:27 UTC 2014
Diffstat (limited to 'pcr/python2-pycha/PKGBUILD')
-rw-r--r-- | pcr/python2-pycha/PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pcr/python2-pycha/PKGBUILD b/pcr/python2-pycha/PKGBUILD new file mode 100644 index 000000000..cc6662f70 --- /dev/null +++ b/pcr/python2-pycha/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Jakub Klinkovský <kuba.klinkovsky@gmail.com> +# Contributor (Parabola): André Silva <emulatorman@parabola.nu> +pkgname=python2-pycha +pkgver=279 +pkgrel=1 +pkgdesc="Pycha is a very simple Python package for drawing charts using the great Cairo library." +arch=('any') +url="http://bitbucket.org/lgs/pycha/" +license=('LGPL') +depends=('pycairo') +makedepends=('mercurial' 'python2-distribute') + +_hgroot="https://bitbucket.org/lgs/pycha" +_hgrepo="pycha" + +build() { + cd "$srcdir" + msg "Connecting to Mercurial server...." + + if [[ -d "$_hgrepo" ]]; then + cd "$_hgrepo" + hg pull -u + msg "The local files are updated." + else + hg clone "$_hgroot" "$_hgrepo" + fi + + msg "Mercurial checkout done or server timeout" +} + +package() { + cd "$srcdir/$_hgrepo" + msg "Starting build..." + python2 setup.py install --root=$pkgdir +} |