45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# Maintainer: Alexey Pavlov <alexpux@gmail.com>
|
|
|
|
_realname=beaker
|
|
pkgbase="python-${_realname}"
|
|
pkgname=("python-${_realname}")
|
|
pkgver=1.13.0
|
|
pkgrel=3
|
|
pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications"
|
|
arch=('any')
|
|
license=('PSF')
|
|
url="https://beaker.readthedocs.org"
|
|
msys2_repository_url="https://github.com/bbangert/beaker"
|
|
msys2_references=(
|
|
"pypi:Beaker"
|
|
"cpe: cpe:/a:python:beaker"
|
|
)
|
|
depends=("python")
|
|
makedepends=(
|
|
"python-setuptools"
|
|
"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=('3987a336340e884bcec2a2496f2614ee2cd0a171079191f57df25247b6e0c4a7')
|
|
|
|
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"
|
|
}
|