summaryrefslogtreecommitdiff
path: root/pcr/python2-pycha
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-04-17 10:46:31 -0300
committerAndré Fabian Silva Delgado <emulatorman@lavabit.com>2013-04-17 10:46:31 -0300
commit710a19e9bf8a3d6b34aa02c8ed5afed39e58f283 (patch)
tree9ca0a42cf15162db0b5791723112043a5d89ac45 /pcr/python2-pycha
parenta250dea20fce468cc16ab15cb4117a68aa21044a (diff)
python2-pycha: fixing issues on PKGBUILD
Diffstat (limited to 'pcr/python2-pycha')
-rw-r--r--pcr/python2-pycha/PKGBUILD21
1 files changed, 19 insertions, 2 deletions
diff --git a/pcr/python2-pycha/PKGBUILD b/pcr/python2-pycha/PKGBUILD
index 88091c2b1..4c9cf4ea4 100644
--- a/pcr/python2-pycha/PKGBUILD
+++ b/pcr/python2-pycha/PKGBUILD
@@ -1,4 +1,5 @@
# Maintainer: Jakub Klinkovský <kuba.klinkovsky@gmail.com>
+# Contributor (Parabola): André Silva <emulatorman@lavabit.com>
pkgname=python2-pycha
pkgver=279
pkgrel=1
@@ -7,12 +8,28 @@ arch=('any')
url="http://bitbucket.org/lgs/pycha/"
license=('LGPL')
depends=('pycairo')
-makedepends=('python2-distribute')
+makedepends=('mercurial' 'python2-distribute')
-_hgroot="https://bitbucket.org/lgs"
+_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
}