python-beaker: port to build/installer

This commit is contained in:
Christoph Reiter 2022-12-17 12:13:00 +01:00
parent 2af34207c4
commit c7c457c96d

View File

@ -4,13 +4,18 @@ _realname=beaker
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=1.12.0
pkgrel=1
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")
makedepends=(
"python-setuptools"
"python-wheel"
"python-build"
"python-installer"
)
provides=("python3-${_realname}")
conflicts=("python3-${_realname}")
replaces=("python3-${_realname}")
@ -24,12 +29,12 @@ prepare() {
build() {
cd "${srcdir}/${_realname}-${pkgver}"
/usr/bin/python setup.py build
python -m build --wheel --skip-dependency-check --no-isolation
}
package() {
cd "${srcdir}/${_realname}-${pkgver}"
/usr/bin/python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
python -m installer --destdir="${pkgdir}" dist/*.whl
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python-beaker/LICENSE"
}