summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD17
2 files changed, 14 insertions, 10 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e218465b8c6..8921107da56 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = python-svglib
pkgdesc = A pure-Python library for reading and converting SVG files.
pkgver = 0.8.1
- pkgrel = 1
+ pkgrel = 2
url = http://pypi.python.org/pypi/svglib/0.8.1
arch = any
license = LGPL
@@ -13,6 +13,11 @@ pkgbase = python-svglib
sha256sums = 1f8cb633f154b83987e3a906a55cf69c8739c0df5ea4eee024677c3e8fb62f55
sha256sums = 21d9f9634ba0c92ee6b21c720978a3825ff92974177cab17e72015c62ec10a47
+pkgname = python2-svglib
+ depends = python2
+ depends = python2-reportlab
+ depends = python2-lxml
+
pkgname = python-svglib
depends = python
depends = python-reportlab
diff --git a/PKGBUILD b/PKGBUILD
index 979bd962d92..92f6b27962c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,11 +1,10 @@
# Contributor: Vladimir Gorbunov <truedaemon@gmail.com>
pkgbase=python-svglib
-pkgname=python-svglib
-# pkgname=('python2-svglib' 'python-svglib')
+pkgname=('python2-svglib' 'python-svglib')
_name=svglib
pkgver=0.8.1
-pkgrel=1
+pkgrel=2
pkgdesc="A pure-Python library for reading and converting SVG files."
arch=('any')
url="http://pypi.python.org/pypi/svglib/$pkgver"
@@ -23,12 +22,12 @@ prepare() {
patch -Np1 -i "${srcdir}/xrange.patch"
}
-# package_python2-svglib() {
-# cd "$srcdir/svglib-$pkgver"
-# depends=('python2' 'python2-reportlab' 'python2-lxml')
-# python2 setup.py install --root="$pkgdir/" --optimize=1
-# mv "${pkgdir}/usr/bin/svg2pdf" "${pkgdir}/usr/bin/svg2pdf-py2"
-# }
+package_python2-svglib() {
+ cd "$srcdir/svglib-$pkgver"
+ depends=('python2' 'python2-reportlab' 'python2-lxml')
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+ mv "${pkgdir}/usr/bin/svg2pdf" "${pkgdir}/usr/bin/svg2pdf-py2"
+}
package_python-svglib() {
cd "$srcdir/svglib-$pkgver"