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

Sergej Pupykin spupykin at archlinux.org
Fri Aug 29 15:44:30 UTC 2014


    Date: Friday, August 29, 2014 @ 17:44:30
  Author: spupykin
Revision: 118069

upgpkg: pychecker 0.8.19-4

upd

Modified:
  pychecker/trunk/PKGBUILD

----------+
 PKGBUILD |    9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-08-29 15:36:08 UTC (rev 118068)
+++ PKGBUILD	2014-08-29 15:44:30 UTC (rev 118069)
@@ -4,7 +4,7 @@
 
 pkgname=pychecker
 pkgver=0.8.19
-pkgrel=3
+pkgrel=4
 pkgdesc="Python code checker"
 arch=('any')
 url="http://pychecker.sourceforge.net"
@@ -16,14 +16,13 @@
 prepare() {
   cd $srcdir/$pkgname-$pkgver
   chmod 0644 ChangeLog
+  sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
+         -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
+         $(find . -name '*.py')
 }
 
 package() {
   cd $srcdir/$pkgname-$pkgver
   python2 setup.py install --root=$pkgdir
-  sed -i "s:$pkgdir::" $pkgdir/usr/bin/pychecker
   install -D -m 644 COPYRIGHT $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT
-  sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
-         -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
-         $(find $pkgdir -name '*.py')
 }




More information about the arch-commits mailing list