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

Alexander Rødseth arodseth at nymeria.archlinux.org
Thu May 9 10:59:54 EDT 2013


    Date: Thursday, May 9, 2013 @ 16:59:53
  Author: arodseth
Revision: 90220

upgpkg: python2-memcached 1.51-1

Modified:
  python2-memcached/trunk/PKGBUILD

----------+
 PKGBUILD |   17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-09 12:29:02 UTC (rev 90219)
+++ PKGBUILD	2013-05-09 14:59:53 UTC (rev 90220)
@@ -6,8 +6,8 @@
 
 pkgname=python2-memcached
 pkgdesc='Python interface to memcached'
-pkgver=1.48
-pkgrel=4
+pkgver=1.51
+pkgrel=1
 depends=('python2')
 url='https://bugs.launchpad.net/python-memcached'
 arch=('any')
@@ -15,19 +15,24 @@
 makedepends=('python2-distribute')
 source=("ftp://ftp.tummy.com/pub/python-memcached/python-memcached-$pkgver.tar.gz"
         'LICENSE')
-sha256sums=('66bbc62d9519f9d531b1f77e687d9f2f5e521cb906f1fd7231f403997e0110c4'
+sha256sums=('228563f1aa221f73b43509877322fde8a0efa4b65e9d065237b26f682a4a9a88'
             '9f3f9438250f8aa5bdcbb0dee700f237932fbda985646c61c85d2a25a2510f36')
 
+prepare() {
+  cd "$srcdir/python-memcached-$pkgver"
+
+  sed -i 's:/usr/bin/env python:#/usr/bin/python2:' memcache.py
+}
+
 package() {
-  cd $srcdir/python-memcached-$pkgver
+  cd "$srcdir/python-memcached-$pkgver"
 
-  sed -i 's:/usr/bin/env python:#/usr/bin/python2:' memcache.py
   python2 setup.py install --root=$pkgdir --optimize=1
   install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
 
 check() {
-  cd $srcdir/python-memcached-$pkgver
+  cd "$srcdir/python-memcached-$pkgver"
 
   python2 setup.py check
 }



More information about the arch-commits mailing list