diff options
author | Juliette Monsel | 2023-09-06 12:08:26 +0200 |
---|---|---|
committer | Juliette Monsel | 2023-09-06 12:08:26 +0200 |
commit | eedc60cc6a87ae209129c6129505c04487cb49c0 (patch) | |
tree | 37d3882f6b11f1abe420b717b9187e9eaa4244b2 | |
parent | f0f6107cc1e4c86e1db611bf4280e9af0093ecd9 (diff) | |
download | aur-eedc60cc6a87ae209129c6129505c04487cb49c0.tar.gz |
Modernize build and install
-rwxr-xr-x | .SRCINFO | 2 | ||||
-rwxr-xr-x | PKGBUILD | 21 |
2 files changed, 14 insertions, 9 deletions
@@ -1,7 +1,7 @@ pkgbase = python-wadllib pkgdesc = Python 3 library for navigating WADL files. The Web Application Description Language is an XML vocabulary for describing the capabilities of HTTP resources. pkgver = 1.3.6 - pkgrel = 1 + pkgrel = 2 url = https://launchpad.net/wadllib arch = any license = LGPL3 @@ -1,28 +1,33 @@ # Maintainer: Juliette Monsel <j_4321 at protonmail dot com> # based on the python2-wadllib PKGBUILD by ValHue <vhuelamo at gmail dot com> -_pkgname="wadllib" +_name="wadllib" pkgname=("python-wadllib") pkgver="1.3.6" -pkgrel="1" +pkgrel="2" pkgdesc="Python 3 library for navigating WADL files. The Web Application Description Language is an XML vocabulary for describing the capabilities of HTTP resources." arch=('any') url="https://launchpad.net/wadllib" license=('LGPL3') makedepends=('python-setuptools') depends=('python-lazr-uri' 'python-setuptools' 'python-simplejson') -source=("${pkgname}-${pkgver}.tar.gz::https://launchpad.net/$_pkgname/trunk/$pkgver/+download/$_pkgname-$pkgver.tar.gz" - "${pkgname}-${pkgver}.tar.gz.asc::https://launchpad.net/$_pkgname/trunk/$pkgver/+download/$_pkgname-$pkgver.tar.gz.asc") +source=("${pkgname}-${pkgver}.tar.gz::https://launchpad.net/$_name/trunk/$pkgver/+download/$_name-$pkgver.tar.gz" + "${pkgname}-${pkgver}.tar.gz.asc::https://launchpad.net/$_name/trunk/$pkgver/+download/$_name-$pkgver.tar.gz.asc") sha256sums=('acd9ad6a2c1007d34ca208e1da6341bbca1804c0e6850f954db04bdd7666c5fc' 'SKIP') validpgpkeys=('AC0A4FF12611B6FCCF01C111393587D97D86500B') # Colin Watson +prepare() { + cd "$_name-$pkgver" + sed -i "s|include_package_data=True|include_package_data=False|g" setup.py +} + build() { - cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py build + cd "$_name-$pkgver" + python -m build --wheel --no-isolation } package() { - cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + cd "$_name-$pkgver" + python -m installer --destdir="$pkgdir" dist/*.whl } |