[arch-commits] Commit in python2-rst2pdf/trunk (PKGBUILD)
Alexander Rødseth
arodseth at archlinux.org
Tue Jun 30 10:30:37 UTC 2015
Date: Tuesday, June 30, 2015 @ 12:30:37
Author: arodseth
Revision: 136152
upgpkg: python2-rst2pdf 0.93-8
Modified:
python2-rst2pdf/trunk/PKGBUILD
----------+
PKGBUILD | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-06-30 10:22:57 UTC (rev 136151)
+++ PKGBUILD 2015-06-30 10:30:37 UTC (rev 136152)
@@ -5,12 +5,12 @@
pkgname=python2-rst2pdf
pkgver=0.93
-pkgrel=7
+pkgrel=8
pkgdesc='Create PDFs from simple text markup, no LaTeX required'
arch=('any')
-url='http://rst2pdf.googlecode.com/'
+url='https://github.com/ralsina/rst2pdf'
license=('MIT')
-makedepends=('python2-setuptools')
+makedepends=('python2-setuptools' 'git')
depends=('python2-docutils' 'python2-reportlab' 'python2-pygments' 'pygmentize'
'python2-pdfrw')
optdepends=('uniconvertor: vector images support'
@@ -18,11 +18,11 @@
'inkscape: best SVG support'
#'python2-wordaxe: hyphenation'
'python2-pillow: non-JPEG bitmap image formats')
-source=("http://rst2pdf.googlecode.com/files/rst2pdf-$pkgver.tar.gz")
-sha256sums=('3af44283ced19030a8286e8f8d71106ca6c78efe4bc95e9af42d678c363efcbc')
+source=("git://github.com/ralsina/rst2pdf.git#tag=$pkgver")
+md5sums=('SKIP')
prepare() {
- cd "rst2pdf-$pkgver"
+ cd rst2pdf
find . -name "*.py" -exec sed -i '0,/env python/s//env python2/' {} \;
sed -i 's/import Image/from PIL import Image/' rst2pdf/math_flowable.py
@@ -29,7 +29,7 @@
}
build() {
- cd "rst2pdf-$pkgver"
+ cd rst2pdf
python2 setup.py build
cd doc
@@ -37,7 +37,7 @@
}
package() {
- cd "rst2pdf-$pkgver"
+ cd rst2pdf
python2 setup.py install --root="$pkgdir" --optimize=1
install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
@@ -44,4 +44,5 @@
install -Dm644 doc/rst2pdf.1 "$pkgdir/usr/share/man/man1/rst2pdf.1"
}
+# getver: raw.githubusercontent.com/ralsina/rst2pdf/master/setup.py
# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list