summaryrefslogtreecommitdiff
path: root/pcr/python2-relatorio/PKGBUILD
blob: bbfdb15f4f9f019283410b7e01883f49a32d509e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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/"
_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
}