Hello aur-general list,

I have modernized the orphaned `tcping` package to use the current
Arch Linux PEP 517 python packaging standards (python-build and
python-installer) instead of the deprecated setup.py workflow.

Additionally, I have updated the .SRCINFO metadata, bumped pkgrel to
2, and explicitly added the installation steps for the missing MIT
LICENSE file.

The unified diff is provided below.

Regards,
Frank Pereny

diff --git a/.SRCINFO b/.SRCINFO
index c716c25..6488a0e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,21 @@
 pkgbase = tcping
  pkgdesc = Just like icmp ping
  pkgver = 0.1.1rc1
- pkgrel = 1
+ pkgrel = 2
  url = https://github.com/zhengxiaowai/tcping
  arch = any
  license = MIT
  makedepends = python-setuptools
+ makedepends = python-build
+ makedepends = python-installer
+ makedepends = python-wheel
+ depends = python
  depends = python-click
  depends = python-prettytable
  depends = python-six
  source = 
https://files.pythonhosted.org/packages/2a/a1/7e8ac7d81a1a89b1cdb8200fee2c0779410a63743806213cb9289ab6ee94/tcping-0.1.1rc1.tar.gz
+ source = 
LICENSE::https://raw.githubusercontent.com/zhengxiaowai/tcping/refs/heads/master/LICENSE
  sha256sums = 557d5e928601e5a31e55abe20c6b9fff18bdc74a1e1d620d6b28b2f7c7a26606
+ sha256sums = a5d77ee8f21b686eb9f7fe44783c5f17a987b7efe04151da5a12e31a42fd1568

 pkgname = tcping
-
diff --git a/PKGBUILD b/PKGBUILD
index 46903db..1c43875 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,25 +1,29 @@
-# Contributor(s): xgdgsc <[email protected]>
-# Maintainer: Bruce Zhang <[email protected]>
+# Maintainer: Frank Pereny <[email protected]>
+# Contributor: Bruce Zhang <[email protected]>
+# Contributor: xgdgsc <[email protected]>

 pkgname=tcping
 pkgver=0.1.1rc1
-pkgrel=1
+pkgrel=2
 pkgpath='2a/a1/7e8ac7d81a1a89b1cdb8200fee2c0779410a63743806213cb9289ab6ee94'
 pkgdesc="Just like icmp ping"
 arch=('any')
 url="https://github.com/zhengxiaowai/tcping";
 license=('MIT')
-depends=('python-click' 'python-prettytable' 'python-six')
-makedepends=('python-setuptools')
-source=("https://files.pythonhosted.org/packages/${pkgpath}/tcping-${pkgver}.tar.gz";)
-sha256sums=('557d5e928601e5a31e55abe20c6b9fff18bdc74a1e1d620d6b28b2f7c7a26606')
+depends=('python' 'python-click' 'python-prettytable' 'python-six')
+makedepends=('python-setuptools' 'python-build' 'python-installer'
'python-wheel')
+source=("https://files.pythonhosted.org/packages/${pkgpath}/tcping-${pkgver}.tar.gz";
+ 
"LICENSE::https://raw.githubusercontent.com/zhengxiaowai/tcping/refs/heads/master/LICENSE";)
+sha256sums=('557d5e928601e5a31e55abe20c6b9fff18bdc74a1e1d620d6b28b2f7c7a26606'
+            'a5d77ee8f21b686eb9f7fe44783c5f17a987b7efe04151da5a12e31a42fd1568')

 build() {
  cd "$pkgname-$pkgver"
- python setup.py build
+ python -m build --wheel --no-isolation
 }

 package() {
  cd "$pkgname-$pkgver"
- python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }

Reply via email to