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

Rémy Oudompheng remy at archlinux.org
Wed Sep 1 17:46:42 UTC 2010


    Date: Wednesday, September 1, 2010 @ 13:46:42
  Author: remy
Revision: 89551

upgpkg: python-sqlobject 0.12.1-3
Rebuild for python2.

Modified:
  python-sqlobject/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-09-01 17:29:26 UTC (rev 89550)
+++ PKGBUILD	2010-09-01 17:46:42 UTC (rev 89551)
@@ -4,12 +4,12 @@
 
 pkgname=python-sqlobject
 pkgver=0.12.1
-pkgrel=2
+pkgrel=3
 pkgdesc="A popular Object Relational Manager for providing an object interface to your database, with tables as classes, rows as instances, and columns as attributes"
 arch=('any')
 license=('LGPL')
 url="http://sqlobject.org/"
-depends=('python' 'setuptools' 'python-formencode')
+depends=('python2' 'setuptools' 'python-formencode')
 optdepends=('python-pysqlite: SQlite database support'
 	'python-mysql: MySQL database support'
 	'python-psycopg1: PostgreSQL database support')
@@ -18,7 +18,11 @@
 
 build() {
   cd "$srcdir/SQLObject-$pkgver"
-  python setup.py install --root="$pkgdir" || return 1
-  echo "/usr/lib/python2.6/site-packages/SQLObject-$pkgver-py2.6.egg" > \
-    "$pkgdir/usr/lib/python2.6/site-packages/$pkgname.pth" || return 1
+  python2 setup.py install --root="$pkgdir" || return 1
+
+  sed -i -e 's#env python#env python2#' \
+      "${pkgdir}"/usr/lib/python2.7/site-packages/sqlobject/manager/command.py
+
+  echo "/usr/lib/python2.7/site-packages/SQLObject-$pkgver-py2.6.egg" > \
+    "$pkgdir/usr/lib/python2.7/site-packages/$pkgname.pth" || return 1
 }




More information about the arch-commits mailing list