Package Details: python-widlparser 1.1.5-1

Git Clone URL: https://aur.archlinux.org/python-widlparser.git (read-only, click to copy)
Package Base: python-widlparser
Description: WebIDL Parser
Upstream URL: https://pypi.org/project/widlparser
Licenses: MIT
Submitter: KokaKiwi
Maintainer: KokaKiwi
Last Packager: KokaKiwi
Votes: 0
Popularity: 0.000000
First Submitted: 2020-12-10 02:45 (UTC)
Last Updated: 2024-04-27 20:36 (UTC)

Latest Comments

aetherherne commented on 2024-10-26 07:43 (UTC) (edited on 2024-10-26 07:43 (UTC) by aetherherne)

The original developers gitlab site has gone down. This will require some changes, detailed in the below diff:

diff --git a/PKGBUILD b/PKGBUILD
index ea45bde..3065925 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,22 +10,22 @@ url="https://pypi.org/project/$_pkgname"
 license=('MIT')
 depends=('python' 'python-typing_extensions')
 makedepends=('git' 'python-build' 'python-installer' 'python-wheel' 'python-setuptools-scm')
-source=("$pkgname-$pkgver.tar.gz::https://gitlab.linss.com/open-source/python/widlparser/-/archive/v$pkgver/widlparser-v$pkgver.tar.gz"
+source=("$pkgname-$pkgver.tar.gz::https://files.pythonhosted.org/packages/source/${_pkgname::1}/${_pkgname//-/_}/${_pkgname//-/_}-$pkgver.tar.gz"
         LICENSE)
-sha256sums=('d2d228d2bbbc3dd3fac2a6c5e6a6240c9a8450d5d0f9d1b68368d7cffcb64251'
+sha256sums=('fab02f959d5d3717464ae60001f5841405f275a2e8ece6fe5a3e4602d2e372f8'
             'f348501d1ffcefb090a49e4ec6911786e7913347f50f0924d5256497213a2493')
-b2sums=('0b3131654a6afaea15b2bfb5cef36135e62b28c8bb3714db7501c42bd93988c087e71bbf26b99f7996116803dd4fda9301592d35b183017ccadc54ba4494d202'
+b2sums=('d25e1ba3c560c2a1b2c577c5f1d8b37ab0b3661d5e4eb1695f806ea08cb959d87708d50d3629c7296c5bdabdd6a4d35cb0ed43032e2e04d6c70c342ff629ec3a'
         '9869a2d862cc7ea22788323384983b8afe64f0015bfae28181d60b0601e2e4c67e74774a4e318842873eef418eb887bfa0f58ef6cca59278f52d95433a2c79a4')

 build() {
-  cd "widlparser-v$pkgver"
+  cd "widlparser-$pkgver"

   SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver" \
     python -m build --wheel --no-isolation
 }

 package() {
-  cd "widlparser-v$pkgver"
+  cd "widlparser-$pkgver"

   python -m installer --destdir="$pkgdir" dist/*.whl