python-beaker: port to build/installer
This commit is contained in:
parent
2af34207c4
commit
c7c457c96d
@ -4,13 +4,18 @@ _realname=beaker
|
|||||||
pkgbase="python-${_realname}"
|
pkgbase="python-${_realname}"
|
||||||
pkgname=("python-${_realname}")
|
pkgname=("python-${_realname}")
|
||||||
pkgver=1.12.0
|
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"
|
pkgdesc="Caching and sessions WSGI middleware for use with web applications and stand-alone Python scripts and applications"
|
||||||
arch=('any')
|
arch=('any')
|
||||||
license=('PSF')
|
license=('PSF')
|
||||||
url="http://beaker.groovie.org/"
|
url="http://beaker.groovie.org/"
|
||||||
depends=("python")
|
depends=("python")
|
||||||
makedepends=("python-setuptools")
|
makedepends=(
|
||||||
|
"python-setuptools"
|
||||||
|
"python-wheel"
|
||||||
|
"python-build"
|
||||||
|
"python-installer"
|
||||||
|
)
|
||||||
provides=("python3-${_realname}")
|
provides=("python3-${_realname}")
|
||||||
conflicts=("python3-${_realname}")
|
conflicts=("python3-${_realname}")
|
||||||
replaces=("python3-${_realname}")
|
replaces=("python3-${_realname}")
|
||||||
@ -24,12 +29,12 @@ prepare() {
|
|||||||
build() {
|
build() {
|
||||||
cd "${srcdir}/${_realname}-${pkgver}"
|
cd "${srcdir}/${_realname}-${pkgver}"
|
||||||
|
|
||||||
/usr/bin/python setup.py build
|
python -m build --wheel --skip-dependency-check --no-isolation
|
||||||
}
|
}
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd "${srcdir}/${_realname}-${pkgver}"
|
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"
|
install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python-beaker/LICENSE"
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user