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

Alexander Rødseth arodseth at archlinux.org
Mon Sep 1 16:37:14 UTC 2014


    Date: Monday, September 1, 2014 @ 18:37:13
  Author: arodseth
Revision: 118147

upgpkg: python2-sqlobject 1.5.1-2

Modified:
  python2-sqlobject/trunk/PKGBUILD

----------+
 PKGBUILD |   12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2014-09-01 16:33:33 UTC (rev 118146)
+++ PKGBUILD	2014-09-01 16:37:13 UTC (rev 118147)
@@ -6,7 +6,7 @@
 
 pkgname=python2-sqlobject
 pkgver=1.5.1
-pkgrel=1
+pkgrel=2
 pkgdesc='Provides an object interface to SQL databases'
 arch=('any')
 license=('LGPL')
@@ -17,14 +17,18 @@
 source=("https://pypi.python.org/packages/source/S/SQLObject/SQLObject-$pkgver.tar.gz")
 sha256sums=('68f86ae270b59f9cb57eadbd6b82264c2684cf0ab582e62e1188d5f8d1456a8d')
 
+prepare() {
+  cd "SQLObject-$pkgver"
+
+  find . -type f -exec \
+    sed -i 's,^#!/usr/bin/env python,#!/usr/bin/env python2,' {} \;
+}
+
 package() {
   cd "SQLObject-$pkgver"
 
   python2 setup.py install --root="$pkgdir"
 
-  find $pkgdir/usr/lib -type f -exec \
-    sed -i 's,^#!/usr/bin/env python,#!/usr/bin/env python2,' {} \;
-
   echo "/usr/lib/python2.7/site-packages/SQLObject-$pkgver-py2.6.egg" > \
     "$pkgdir/usr/lib/python2.7/site-packages/$pkgname.pth"
 }




More information about the arch-commits mailing list