From 7be5eebe56d8ce272b5674871f0cea137d635aae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Wed, 17 Apr 2013 09:27:16 -0300 Subject: python2-pycha: adding new package to [pcr] repo --- pcr/python2-pycha/PKGBUILD | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 pcr/python2-pycha/PKGBUILD (limited to 'pcr/python2-pycha') diff --git a/pcr/python2-pycha/PKGBUILD b/pcr/python2-pycha/PKGBUILD new file mode 100644 index 000000000..88091c2b1 --- /dev/null +++ b/pcr/python2-pycha/PKGBUILD @@ -0,0 +1,18 @@ +# Maintainer: Jakub Klinkovský +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=('python2-distribute') + +_hgroot="https://bitbucket.org/lgs" +_hgrepo="pycha" + +build() { + cd "$srcdir/$_hgrepo" + python2 setup.py install --root=$pkgdir +} -- cgit v1.2.3-2-g168b From 710a19e9bf8a3d6b34aa02c8ed5afed39e58f283 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Fabian=20Silva=20Delgado?= Date: Wed, 17 Apr 2013 10:46:31 -0300 Subject: python2-pycha: fixing issues on PKGBUILD --- pcr/python2-pycha/PKGBUILD | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'pcr/python2-pycha') 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ý +# Contributor (Parabola): André Silva 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 } -- cgit v1.2.3-2-g168b