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

Ionut Biru ibiru at archlinux.org
Thu Dec 22 16:45:30 UTC 2011


    Date: Thursday, December 22, 2011 @ 11:45:30
  Author: ibiru
Revision: 145448

update to 1.6.2
add python3 support

Modified:
  python-beaker/trunk/PKGBUILD

----------+
 PKGBUILD |   37 ++++++++++++++++++++++++++++---------
 1 file changed, 28 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-12-22 13:02:48 UTC (rev 145447)
+++ PKGBUILD	2011-12-22 16:45:30 UTC (rev 145448)
@@ -1,22 +1,41 @@
 # $Id$
 # Maintainer : Ionut Biru <ibiru at archlinux.org>
 # Contributor: Massimiliano Torromeo < massimiliano DOT torromeo AT gmail DOT com >
-pkgname=python-beaker
-pkgver=1.5.4
-pkgrel=2
+
+pkgname=('python-beaker' 'python2-beaker')
+pkgver=1.6.2
+pkgrel=1
 arch=('any')
 license=('custom')
 pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications"
 url="http://beaker.groovie.org/"
-depends=('python2')
-makedepends=('setuptools')
-source=("http://cheeseshop.python.org/packages/source/B/Beaker/Beaker-$pkgver.tar.gz")
-md5sums=('de84e7511119dc0b8eb4ac177d3e2512')
+makedepends=('python-distribute' 'python2-distribute')
+source=("http://cheeseshop.python.org/packages/source/B/Beaker/Beaker-${pkgver}.tar.gz")
+md5sums=('455a264cb481ab07446f020c001dcdc5')
 
 build() {
+    cp -r Beaker-${pkgver} python2-Beaker-${pkgver}
+
     cd ${srcdir}/Beaker-${pkgver}
+    python setup.py build
+
+    cd ${srcdir}/python2-Beaker-${pkgver}
     sed -i "s#/usr/bin/python#/usr/bin/python2#" beaker/crypto/pbkdf2.py
+    python2 setup.py build
+}
+
+package_python-beaker() {
+    depends=('python')
+
+    cd ${srcdir}/Beaker-${pkgver}
+    python setup.py install --root=${pkgdir} --optimize=1
+    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/python-beaker/LICENSE
+}
+
+package_python2-beaker() {
+    depends=('python2')
+
+    cd ${srcdir}/python2-Beaker-${pkgver}
     python2 setup.py install --root=${pkgdir} --optimize=1
-    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
+    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/python2-beaker/LICENSE
 }
-




More information about the arch-commits mailing list