summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Gorbunov2015-06-12 16:15:54 +0300
committerVladimir Gorbunov2015-06-12 16:15:54 +0300
commit10ff86a801e3d1ac065fc85c39daed8eabc33e23 (patch)
tree51dac1f7c00cb071fcbf497082c420a54add554a
downloadaur-10ff86a801e3d1ac065fc85c39daed8eabc33e23.tar.gz
Initial commit
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD26
2 files changed, 41 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..8feb363d536
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = python2-svglib
+ pkgdesc = An experimental library for reading and converting SVG.
+ pkgver = 0.6.3
+ pkgrel = 4
+ url = http://pypi.python.org/pypi/svglib/0.6.3
+ arch = any
+ license = LGPL
+ depends = python2
+ depends = python2-reportlab
+ options = !emptydirs
+ source = http://pypi.python.org/packages/source/s/svglib/svglib-0.6.3.tar.gz
+ md5sums = 454edcfef70d52f62e0e434f2efad853
+
+pkgname = python2-svglib
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..86379e66664
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,26 @@
+# Contributor: Vladimir Gorbunov <truedaemon@gmail.com>
+
+pkgname=python2-svglib
+pkgver=0.6.3
+pkgrel=4
+pkgdesc="An experimental library for reading and converting SVG."
+arch=('any')
+url="http://pypi.python.org/pypi/svglib/$pkgver"
+license=('LGPL')
+depends=('python2' 'python2-reportlab')
+options=(!emptydirs)
+install=
+source=(http://pypi.python.org/packages/source/s/svglib/svglib-$pkgver.tar.gz)
+md5sums=('454edcfef70d52f62e0e434f2efad853')
+
+prepare() {
+ cd "$srcdir/svglib-$pkgver"
+ sed -i -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+ -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+ $(find "$srcdir" -name '*.py')
+}
+
+package() {
+ cd "$srcdir/svglib-$pkgver"
+ python2 setup.py install --root="$pkgdir/" --optimize=1
+}