* upgrade some broken packages * correct some broken urls/checksums * use secure urls where possible * use stable url for ncurses * some whitespace fixes Remaining md5sums either didn't download or didn't pass checksum tests.
48 lines
1.5 KiB
Bash
48 lines
1.5 KiB
Bash
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
|
|
|
|
pkgbase=beaker
|
|
pkgname=("python3-${pkgbase}" "python2-${pkgbase}")
|
|
pkgver=1.7.0
|
|
pkgrel=1
|
|
pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications"
|
|
arch=('i686' 'x86_64')
|
|
license=('PSF')
|
|
url="http://beaker.groovie.org/"
|
|
depends=("python2-setuptools" "python3-setuptools")
|
|
source=("${pkgbase}-${pkgver}.tar.gz"::https://github.com/bbangert/beaker/archive/${pkgver}.tar.gz)
|
|
sha256sums=('dad9a94e694f4a08fcf298c7c12c07942585a2de076a860d86f4e5ca9603e336')
|
|
|
|
prepare() {
|
|
cd "${srcdir}"
|
|
|
|
cp -a ${pkgbase}-${pkgver}{,-python2}
|
|
}
|
|
|
|
build() {
|
|
# Build python 3 module
|
|
cd "${srcdir}"/${pkgbase}-${pkgver}
|
|
sed -i "s#/usr/bin/python#/usr/bin/python3#" beaker/crypto/pbkdf2.py
|
|
python3 setup.py build
|
|
|
|
# Build python 2 module
|
|
cd ../${pkgbase}-${pkgver}-python2
|
|
sed -i "s#/usr/bin/python#/usr/bin/python2#" beaker/crypto/pbkdf2.py
|
|
python2 setup.py build
|
|
}
|
|
|
|
package_python3-beaker() {
|
|
depends=('python>=3.3')
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}"
|
|
python3 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
|
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python3-beaker/LICENSE"
|
|
}
|
|
|
|
package_python2-beaker() {
|
|
depends=('python2>=2.7')
|
|
|
|
cd "${srcdir}/${pkgbase}-${pkgver}-python2"
|
|
python2 setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
|
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python2-beaker/LICENSE"
|
|
}
|