desktop/python-beaker/PKGBUILD

46 lines
1.5 KiB
Bash
Raw Normal View History

2014-05-07 04:46:56 +08:00
# Maintainer: Manuel "UtG" <utg[dot]chakra.linux[at]gmail[dot]com>
# Contributor: Neo Kolokotronis <tetris4@gmail.com>
2014-05-07 04:46:56 +08:00
pkgname=('python2-beaker' 'python3-beaker')
_pkgname=Beaker
2014-04-11 18:37:53 +08:00
pkgver=1.6.4
2014-09-07 02:06:09 +08:00
pkgrel=3
2014-04-11 18:37:53 +08:00
arch=('x86_64')
2014-05-07 04:46:56 +08:00
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/"
2014-05-07 04:46:56 +08:00
makedepends=('python2-setuptools' 'python3-setuptools')
source=("http://cheeseshop.python.org/packages/source/B/$_pkgname/$_pkgname-$pkgver.tar.gz")
2014-04-11 18:37:53 +08:00
md5sums=('c2e102870ed4c53104dec48ceadf8e9d')
2014-05-07 04:46:56 +08:00
build() {
cp -r ${_pkgname}-${pkgver} python2-${_pkgname}-${pkgver}
2014-05-07 04:46:56 +08:00
cd "${srcdir}/${_pkgname}-${pkgver}"
sed -i "s#/usr/bin/python#/usr/bin/python3#" beaker/crypto/pbkdf2.py
python3 setup.py build
2014-05-07 04:46:56 +08:00
cd "${srcdir}/python2-${_pkgname}-${pkgver}"
sed -i "s#/usr/bin/python#/usr/bin/python2#" beaker/crypto/pbkdf2.py
python2 setup.py build
}
2014-05-07 04:46:56 +08:00
package_python2-beaker() {
depends=('python2')
provides=('python-beaker')
conflicts=('python-beaker')
replaces=('python-beaker')
cd "${srcdir}/python2-${_pkgname}-${pkgver}"
python2 setup.py install --root=$pkgdir --optimize=1
install -D -m644 LICENSE $pkgdir/usr/share/licenses/$pkgname/license.txt
}
2014-05-07 04:46:56 +08:00
package_python3-beaker() {
depends=('python3')
cd "${srcdir}/${_pkgname}-${pkgver}"
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
}