Date: Saturday, April 22, 2023 @ 11:56:47
  Author: alerque
Revision: 1448285

upgpkg: python-moreorless 0.4.0-5; Refactor with PEP517 build

Modified:
  python-moreorless/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++++++++++---------------
 1 file changed, 15 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-04-22 11:29:46 UTC (rev 1448284)
+++ PKGBUILD    2023-04-22 11:56:47 UTC (rev 1448285)
@@ -1,27 +1,27 @@
-# Maintainer:
+# Maintainer: Caleb Maclennan <[email protected]>
 
 _pkgname=moreorless
 pkgname=python-moreorless
 pkgver=0.4.0
-pkgrel=4
-pkgdesc="Python diff wrapper"
-arch=('any')
-url="https://github.com/thatch/moreorless/";
-license=('MIT')
-depends=('python')
-makedepends=('python-setuptools-scm')
-source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz";)
+pkgrel=5
+pkgdesc='Python diff wrapper'
+arch=(any)
+url="https://github.com/thatch/$_pkgname";
+license=(MIT)
+depends=(python)
+makedepends=(python-{build,installer,wheel}
+             python-setuptools-scm)
+_archive="$_pkgname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_archive.tar.gz";)
 sha256sums=('85e19972c1a0b3a49f8543914f57bd83f6e1b10df144d5b97b8c5e9744d9c08c')
 
b2sums=('60e810352e13d4723b138b6bad78536994c9430b51feb5114d44738515e890143b2d69678bb0d2fa87c51e0918b4ef15a084bd466898f41a0055ca3f1372b619')
 
 build(){
-    cd $_pkgname-$pkgver
-
-    python setup.py build
+    cd "$_archive"
+    python -m build -wn
 }
 
 package() {
-    cd $_pkgname-$pkgver
-
-    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+    cd "$_archive"
+    python -m installer -d "$pkgdir" dist/*.whl
 }

Reply via email to