python-markupsafe: Port to build/installer
This commit is contained in:
@@ -4,13 +4,19 @@ _realname=markupsafe
|
||||
pkgbase="python-${_realname}"
|
||||
pkgname=("python-${_realname}")
|
||||
pkgver=2.1.1
|
||||
pkgrel=1
|
||||
pkgrel=2
|
||||
pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python"
|
||||
arch=('i686' 'x86_64')
|
||||
license=('custom')
|
||||
license=('spdx:BSD-3-Clause')
|
||||
url="https://pypi.python.org/pypi/MarkupSafe"
|
||||
depends=("python")
|
||||
makedepends=("python-setuptools" "gcc")
|
||||
makedepends=(
|
||||
"gcc"
|
||||
"python-setuptools"
|
||||
"python-wheel"
|
||||
"python-build"
|
||||
"python-installer"
|
||||
)
|
||||
provides=("python3-${_realname}")
|
||||
conflicts=("python3-${_realname}")
|
||||
replaces=("python3-${_realname}")
|
||||
@@ -19,11 +25,11 @@ sha256sums=('7f91197cc9e48f989d12e4e6fbc46495c446636dfc81b9ccf50bb0ec74b91d4b')
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/MarkupSafe-${pkgver}"
|
||||
/usr/bin/python setup.py build
|
||||
python -m build --wheel --skip-dependency-check --no-isolation
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/MarkupSafe-${pkgver}"
|
||||
/usr/bin/python setup.py install --prefix=/usr --root="${pkgdir}" -O1
|
||||
python -m installer --destdir="${pkgdir}" dist/*.whl
|
||||
install -Dm644 LICENSE.rst "${pkgdir}/usr/share/licenses/python-${_realname}/LICENSE"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user