[arch-commits] Commit in python-beaker/repos (3 files)
Allan McRae
allan at archlinux.org
Tue Oct 16 11:54:22 UTC 2012
Date: Tuesday, October 16, 2012 @ 07:54:21
Author: allan
Revision: 168853
db-move: moved python-beaker from [staging] to [testing] (any)
Added:
python-beaker/repos/testing-any/
python-beaker/repos/testing-any/PKGBUILD
(from rev 168833, python-beaker/repos/staging-any/PKGBUILD)
Deleted:
python-beaker/repos/staging-any/
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: python-beaker/repos/testing-any/PKGBUILD (from rev 168833, python-beaker/repos/staging-any/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD (rev 0)
+++ testing-any/PKGBUILD 2012-10-16 11:54:21 UTC (rev 168853)
@@ -0,0 +1,42 @@
+# $Id$
+# Maintainer : Ionut Biru <ibiru at archlinux.org>
+# Contributor: Massimiliano Torromeo < massimiliano DOT torromeo AT gmail DOT com >
+
+pkgname=('python-beaker' 'python2-beaker')
+pkgver=1.6.3
+pkgrel=2
+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/"
+makedepends=('python-distribute' 'python2-distribute')
+source=("http://cheeseshop.python.org/packages/source/B/Beaker/Beaker-${pkgver}.tar.gz")
+md5sums=('bd4a986a3cad26d576e7ee77cce86b4f')
+
+build() {
+ cp -r Beaker-${pkgver} python2-Beaker-${pkgver}
+
+ cd "${srcdir}/Beaker-${pkgver}"
+ sed -i "s#/usr/bin/python#/usr/bin/python3#" beaker/crypto/pbkdf2.py
+ python3 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}"
+ python3 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/python2-beaker/LICENSE"
+}
More information about the arch-commits
mailing list