2014-05-07 04:46:56 +08:00
|
|
|
# Maintainer: Manuel "UtG" <utg[dot]chakra.linux[at]gmail[dot]com>
|
2011-08-26 06:53:14 +08:00
|
|
|
# Contributor: Neo Kolokotronis <tetris4@gmail.com>
|
|
|
|
|
2016-03-17 05:36:13 +08:00
|
|
|
pkgbase=python-beaker
|
|
|
|
pkgname=('python3-beaker' 'python2-beaker')
|
|
|
|
pkgver=1.8.0
|
|
|
|
pkgrel=1
|
2014-04-11 18:37:53 +08:00
|
|
|
arch=('x86_64')
|
2014-05-07 04:46:56 +08:00
|
|
|
license=('custom')
|
2011-08-26 06:53:14 +08:00
|
|
|
pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications."
|
|
|
|
url="http://beaker.groovie.org/"
|
2014-05-07 04:46:56 +08:00
|
|
|
makedepends=('python2-setuptools' 'python3-setuptools')
|
2016-03-17 05:36:13 +08:00
|
|
|
source=("git+https://github.com/bbangert/beaker.git#tag=$pkgver")
|
|
|
|
md5sums=('SKIP')
|
2011-08-26 06:53:14 +08:00
|
|
|
|
2016-03-17 05:36:13 +08:00
|
|
|
prepare() {
|
|
|
|
cp -a beaker{,-py2}
|
|
|
|
|
|
|
|
sed -i "s#/usr/bin/python#/usr/bin/python3#" beaker/beaker/crypto/pbkdf2.py
|
|
|
|
sed -i "s#/usr/bin/python#/usr/bin/python2#" beaker-py2/beaker/crypto/pbkdf2.py
|
|
|
|
}
|
2011-08-26 06:53:14 +08:00
|
|
|
|
2016-03-17 05:36:13 +08:00
|
|
|
build() {
|
|
|
|
cd "${srcdir}/beaker"
|
2014-05-07 04:46:56 +08:00
|
|
|
python3 setup.py build
|
2011-08-26 06:53:14 +08:00
|
|
|
|
2016-03-17 05:36:13 +08:00
|
|
|
cd "${srcdir}/beaker-py2"
|
2014-05-07 04:46:56 +08:00
|
|
|
python2 setup.py build
|
|
|
|
}
|
2011-08-26 06:53:14 +08:00
|
|
|
|
2014-05-07 04:46:56 +08:00
|
|
|
package_python3-beaker() {
|
|
|
|
depends=('python3')
|
|
|
|
|
2016-03-17 05:36:13 +08:00
|
|
|
cd "${srcdir}/beaker"
|
2014-05-07 04:46:56 +08:00
|
|
|
python3 setup.py install --root="${pkgdir}" --optimize=1
|
|
|
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python-beaker/LICENSE"
|
2014-09-07 02:06:09 +08:00
|
|
|
}
|
2016-03-17 05:36:13 +08:00
|
|
|
|
|
|
|
package_python2-beaker() {
|
|
|
|
depends=('python2')
|
|
|
|
|
|
|
|
cd "${srcdir}/beaker-py2"
|
|
|
|
python2 setup.py install --root="${pkgdir}" --optimize=1
|
|
|
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python2-beaker/LICENSE"
|
|
|
|
}
|