Date: Wednesday, May 10, 2023 @ 20:58:00
  Author: arojas
Revision: 1459827

upgpkg: pychess 1.0.4-1: Update to 1.0.4

Modified:
  pychess/trunk/PKGBUILD

----------+
 PKGBUILD |   20 ++++++++++++--------
 1 file changed, 12 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-05-10 20:57:58 UTC (rev 1459826)
+++ PKGBUILD    2023-05-10 20:58:00 UTC (rev 1459827)
@@ -3,8 +3,8 @@
 # Contributor: Alexander Fehr <pizzap...@gmail.com>
 
 pkgname=pychess
-pkgver=1.0.3
-pkgrel=4
+pkgver=1.0.4
+pkgrel=1
 pkgdesc='Chess client'
 arch=(any)
 url='https://github.com/pychess/pychess'
@@ -14,15 +14,19 @@
          python-websockets)
 # /usr/bin/spike is mistaken for a chess engine
 conflicts=(spike)
-makedepends=(git python-pexpect xorg-server-xvfb)
-source=("git+$url#commit=0faf9eb9fecc7f26bf92b3549bf17ed12e40fc2f") # tag: 
1.0.3
-sha256sums=('SKIP')
+makedepends=(python-build python-installer python-setuptools python-wheel)
+source=(https://github.com/pychess/pychess/releases/download/$pkgver/pychess-$pkgver.tar.gz)
+sha256sums=('f563a89404746b037f7b3145100a024b7cad83fe1383ad41f55b216c1d09bc5c')
 
+build() {
+  cd pychess-$pkgver
+  python -m build --wheel --no-isolation
+}
+
 package() {
-  cd pychess
+  cd pychess-$pkgver
 
-  # Can only be packaged with X available...
-  xvfb-run python setup.py install --prefix=/usr --root="$pkgdir"
+  python -m installer --destdir="$pkgdir" dist/*.whl
 
   # FS#59882
   find "$pkgdir" -wholename 'external/pexpect' -type d -delete

Reply via email to