[arch-commits] Commit in python-markdown/trunk (PKGBUILD)

Kyle Keen kkeen at nymeria.archlinux.org
Wed Feb 19 20:35:53 UTC 2014


    Date: Wednesday, February 19, 2014 @ 21:35:53
  Author: kkeen
Revision: 105954

upgpkg: python-markdown 2.4-1

Modified:
  python-markdown/trunk/PKGBUILD

----------+
 PKGBUILD |   13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-02-19 19:40:41 UTC (rev 105953)
+++ PKGBUILD	2014-02-19 20:35:53 UTC (rev 105954)
@@ -8,8 +8,8 @@
 pkgbase=python-markdown
 pkgname=('python-markdown' 'python2-markdown')
 _pkgbasename=Markdown
-pkgver=2.3.1
-pkgrel=3
+pkgver=2.4
+pkgrel=1
 pkgdesc="Python implementation of John Gruber's Markdown."
 arch=('any')
 url='http://pypi.python.org/pypi/Markdown'
@@ -16,12 +16,14 @@
 license=('BSD')
 makedepends=('python' 'python2')
 source=("http://pypi.python.org/packages/source/M/$_pkgbasename/$_pkgbasename-$pkgver.tar.gz")
-md5sums=('82f6828ec2292dda52fc38b743776bc6')
+md5sums=('4bb9b82f617cac599b399b635fe2356b')
 
 build() {
   cp -r $_pkgbasename-$pkgver "$srcdir/python2-markdown"
   cd "$srcdir/python2-markdown"
-  find "$srcdir/python2-markdown" -name '*.py' | xargs sed -i 's|#!/usr/bin/env python$|&2|'
+  find "$srcdir/python2-markdown" -name '*py' | xargs sed -i 's|#!/usr/bin/env python$|&2|'
+  # bug in 2.4, some DOS line endings slipped in
+  find "$srcdir/python2-markdown" -name '*py' | xargs sed -i 's|env python.*$|env python2|'
 }
 
 package_python-markdown() {
@@ -28,8 +30,6 @@
   depends=('python')
   cd "$srcdir/$_pkgbasename-$pkgver"
   python3 setup.py install --root="$pkgdir" --optimize=0
-  #find "$pkgdir/" -name '*.pyc' -delete
-  #find "$pkgdir/" -type d -empty -delete
   install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/python-markdown/LICENSE"
 }
 
@@ -37,7 +37,6 @@
   depends=('python2')
   cd "$srcdir/python2-markdown"
   python2 setup.py install --root="$pkgdir" --optimize=0
-  #find "$pkgdir/" -name '*.pyc' -delete
   mv "$pkgdir/usr/bin/markdown_py" "$pkgdir/usr/bin/markdown_py2"
   install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/python2-markdown/LICENSE"
 }




More information about the arch-commits mailing list