summaryrefslogtreecommitdiff
path: root/pcr/python2-pycha/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@parabola.nu>2013-04-22 12:55:18 -0300
committerNicolás Reynolds <fauno@parabola.nu>2013-04-22 12:55:18 -0300
commit5d73e0d0fbcfdd552a97bb37d173f8d9a38750a3 (patch)
tree9d8940bd842b4ffd37c86f2074e45f4923f51f5f /pcr/python2-pycha/PKGBUILD
parent20e5a1a55a7bf5d317ba7f8397713be3873a7616 (diff)
parent4e46a07ffcebe8aeee045615623bc141df8f6466 (diff)
Merge branch 'master' of vparabola:abslibre
Diffstat (limited to 'pcr/python2-pycha/PKGBUILD')
-rw-r--r--pcr/python2-pycha/PKGBUILD35
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..4c9cf4ea4
--- /dev/null
+++ b/pcr/python2-pycha/PKGBUILD
@@ -0,0 +1,35 @@
+# Maintainer: Jakub Klinkovský <kuba.klinkovsky@gmail.com>
+# Contributor (Parabola): André Silva <emulatorman@lavabit.com>
+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
+}