Files
MSYS2-packages/python-beaker/PKGBUILD
2022-12-17 12:13:00 +01:00

41 lines
1.1 KiB
Bash

# Maintainer: Alexey Pavlov <alexpux@gmail.com>
_realname=beaker
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=1.12.0
pkgrel=2
pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications"
arch=('any')
license=('PSF')
url="http://beaker.groovie.org/"
depends=("python")
makedepends=(
"python-setuptools"
"python-wheel"
"python-build"
"python-installer"
)
provides=("python3-${_realname}")
conflicts=("python3-${_realname}")
replaces=("python3-${_realname}")
source=("${_realname}-${pkgver}.tar.gz"::https://github.com/bbangert/beaker/archive/${pkgver}.tar.gz)
sha256sums=('e88717be6e81a8668364825e0285bbd776d705182ef493934221a32b628d7f26')
prepare() {
cd "${srcdir}/${_realname}-${pkgver}"
}
build() {
cd "${srcdir}/${_realname}-${pkgver}"
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
python -m installer --destdir="${pkgdir}" dist/*.whl
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python-beaker/LICENSE"
}