# Contributor (Arch): Florian Walch # Maintainer (Arch): Robin Baumgartner # Maintainer: Omar Vega Ramos pkgname=trytond pkgver=4.0.1 _pkgdir=4.0 pkgrel=1 pkgdesc="A three-tiers high-level general purpose application platform (server application)" arch=('any') url="http://www.tryton.org/" license=('GPL3') depends=('python2>=2.7' 'python2-lxml' 'python2-relatorio>=0.2.0' 'python2-genshi>=0.5' 'python2-dateutil' 'python2-polib' 'python2-sql') optdepends=('python2-psycopg2: support for PostgreSQL database' 'python2-pywebdav: support for WebDAV feature' 'python2-pydot: support for displaying workflow graphs' 'python2-pytz: timezone support' 'python2-pyopenssl: support for SSL connection') makedepends=('python2-distribute') backup=('etc/trytond.conf') install="trytond.install" source=("http://downloads.tryton.org/$_pkgdir/$pkgname-$pkgver.tar.gz" 'trytond.conf' 'trytond.install' 'trytond.service') md5sums=('ec4da54bd4525aa450bb052c05006c48' 'db21177e78e6983d85feb14436f5a7ba' 'bc93f99ec68feea9f3e3e11e2cb2b735' 'c3318e663c17194d71f6ef4ded16b293') build() { cd $srcdir/$pkgname-$pkgver python2 setup.py build } package() { cd $srcdir/$pkgname-$pkgver python2 setup.py install --root=$pkgdir --optimize=1 install -D -m640 "$srcdir/trytond.conf" "$pkgdir/etc/trytond.conf" install -D -m755 "$srcdir/trytond.service" "$pkgdir/usr/lib/systemd/system/trytond.service" }