summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard PALO2018-11-19 18:39:35 +0100
committerRichard PALO2018-11-19 18:39:35 +0100
commitbcd793b8a9a75b575f66979ffe797dc7c30bfdb4 (patch)
tree5d41864b4136ece78fa6892aa2eea7fc0bb6b149
parente8e5f71cb0d38887cffd3e9e8b8a9b23b8ea60fe (diff)
downloadaur-bcd793b8a9a75b575f66979ffe797dc7c30bfdb4.tar.gz
Update to relatorio-0.8.1 merging separate packages into split package.
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD35
2 files changed, 38 insertions, 18 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ce9a88848b6..233cde1d25b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,19 +1,26 @@
pkgbase = python-relatorio
pkgdesc = A templating library able to output odt and pdf files
- pkgver = 0.8.0
+ pkgver = 0.8.1
pkgrel = 1
url = http://relatorio.tryton.org/
- arch = i686
- arch = x86_64
+ arch = any
license = GPL
- makedepends = python-distribute
+ makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = https://pypi.io/packages/source/r/relatorio/relatorio-0.8.1.tar.gz
+ sha512sums = 29b931b3de768375b9e736e4f2254faaf8757b1428efb8f3f1fcfca13a12649bbd07f56c000873c3544f203bf6c8e5bdd1e8851c24705cc504e853fa962fa721
+
+pkgname = python-relatorio
depends = python-genshi>=0.5
depends = python-lxml>=2.0
optdepends = python-pycha>=0.4.0: chart support
optdepends = python-yaml
optdepends = python-magic: fodt support
- source = https://pypi.io/packages/source/r/relatorio/relatorio-0.8.0.tar.gz
- md5sums = ba7061dfb512b57dfd54317a183f5278
-pkgname = python-relatorio
+pkgname = python2-relatorio
+ depends = python2-genshi>=0.5
+ depends = python2-lxml>=2.0
+ optdepends = python2-pycha>=0.4.0: chart support
+ optdepends = python2-yaml
+ optdepends = python2-magic: fodt support
diff --git a/PKGBUILD b/PKGBUILD
index d7775245087..e5885f7cfef 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,26 +1,39 @@
# Contributor: Richard PALO <richard.palo@free.fr>
# Contributor: Florian Walch <florian.walch@gmx.at>
# Maintainer: Robin Baumgartner <robin@baumgartners.ch>
-pkgname=python-relatorio
-pkgver=0.8.0
+pkgname=('python-relatorio' 'python2-relatorio')
+pkgver=0.8.1
pkgrel=1
pkgdesc="A templating library able to output odt and pdf files"
-arch=('i686' 'x86_64')
+arch=('any')
url="http://relatorio.tryton.org/"
license=('GPL')
-depends=('python-genshi>=0.5' 'python-lxml>=2.0')
-optdepends=('python-pycha>=0.4.0: chart support' 'python-yaml'
- 'python-magic: fodt support')
-makedepends=('python-distribute')
+makedepends=('python-setuptools' 'python2-setuptools')
source=("https://pypi.io/packages/source/r/relatorio/relatorio-$pkgver.tar.gz")
-md5sums=('ba7061dfb512b57dfd54317a183f5278')
+sha512sums=('29b931b3de768375b9e736e4f2254faaf8757b1428efb8f3f1fcfca13a12649bbd07f56c000873c3544f203bf6c8e5bdd1e8851c24705cc504e853fa962fa721')
-build() {
+build_python-relatorio() {
cd $srcdir/relatorio-$pkgver
python setup.py build
}
-package() {
+package_python-relatorio() {
+ depends=('python-genshi>=0.5' 'python-lxml>=2.0')
+ optdepends=('python-pycha>=0.4.0: chart support' 'python-yaml' 'python-magic: fodt support')
+
+ cd $srcdir/relatorio-$pkgver
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+}
+
+build_python2-relatorio() {
+ cd $srcdir/relatorio-$pkgver
+ python2 setup.py build
+}
+
+package_python2-relatorio() {
+ depends=('python2-genshi>=0.5' 'python2-lxml>=2.0')
+ optdepends=('python2-pycha>=0.4.0: chart support' 'python2-yaml' 'python2-magic: fodt support')
+
cd $srcdir/relatorio-$pkgver
- python setup.py install --root=$pkgdir
+ python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build
}