diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-22 10:52:18 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-04-22 10:52:18 -0400 |
commit | 908d987dd1dcd4899f8f7f0878514c22ca8048b7 (patch) | |
tree | 29bf5986774207c3453044e1f370fb98d2431265 /pcr/python2-relatorio/PKGBUILD | |
parent | 308bfb446305a96dffce945b6c4fb82b10d1b91b (diff) | |
parent | 8351d69e64a40d68fa32cfeea227b6fcf7afe974 (diff) | |
download | abslibre-908d987dd1dcd4899f8f7f0878514c22ca8048b7.tar.gz abslibre-908d987dd1dcd4899f8f7f0878514c22ca8048b7.tar.bz2 abslibre-908d987dd1dcd4899f8f7f0878514c22ca8048b7.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/python2-relatorio/PKGBUILD')
-rw-r--r-- | pcr/python2-relatorio/PKGBUILD | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pcr/python2-relatorio/PKGBUILD b/pcr/python2-relatorio/PKGBUILD new file mode 100644 index 000000000..fcaae5c7a --- /dev/null +++ b/pcr/python2-relatorio/PKGBUILD @@ -0,0 +1,35 @@ +# Maintainer: Jakub Klinkovský <kuba.klinkovsky@gmail.com> +# Contributor (Parabola): André Silva <emulatorman@lavabit.com> +pkgname=python2-relatorio +pkgver=183 +pkgrel=1 +pkgdesc="Relatorio is an OpenHex and B2CK project to easily create reports in a variety of formats (openoffice text, PDF, XHTML) from python objects." +arch=('any') +url="http://relatorio.openhex.org" +license=('GPL') +depends=('python2-genshi' 'python2-lxml' 'python2-yaml' 'python2-pycha') +makedepends=('mercurial' 'python2-distribute') + +_hgroot="http://hg.openhex.org/hgwebdir.cgi/relatorio" +_hgrepo="relatorio" + +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 +} |