# $Id: PKGBUILD 87715 2010-08-18 03:37:40Z allan $
# Maintainer : Ionut Biru <ibiru@archlinux.org>
# Contributor: Massimiliano Torromeo < massimiliano DOT torromeo AT gmail DOT com >
pkgname=python-beaker
pkgver=1.5.4
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/"
depends=('python2')
makedepends=('python2-distribute')
source=("http://cheeseshop.python.org/packages/source/B/Beaker/Beaker-$pkgver.tar.gz")
md5sums=('de84e7511119dc0b8eb4ac177d3e2512')

build() {
    cd ${srcdir}/Beaker-${pkgver}
    sed -i "s#/usr/bin/python#/usr/bin/python2#" beaker/crypto/pbkdf2.py
    python2 setup.py install --root=${pkgdir} --optimize=1
    install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
}