Date: Tuesday, March 14, 2023 @ 18:19:32
  Author: polyzen
Revision: 1420242

upgpkg: python-sphinxcontrib-jquery 4.1-1

Modified:
  python-sphinxcontrib-jquery/trunk/PKGBUILD

----------+
 PKGBUILD |   28 +++++++++++-----------------
 1 file changed, 11 insertions(+), 17 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2023-03-14 18:11:15 UTC (rev 1420241)
+++ PKGBUILD    2023-03-14 18:19:32 UTC (rev 1420242)
@@ -1,9 +1,9 @@
 # Contributor: Astro Benzene <universebenzene at sina dot com>
 
-_name=jquery
+_name=sphinxcontrib-jquery
 pkgname=python-sphinxcontrib-jquery
-pkgver=4.0.0
-pkgrel=2
+pkgver=4.1
+pkgrel=1
 pkgdesc="Extension to include jQuery on newer Sphinx releases"
 arch=('any')
 url=https://github.com/sphinx-contrib/jquery
@@ -11,25 +11,19 @@
 depends=('python-sphinx')
 makedepends=('python-build' 'python-flit-core' 'python-installer')
 checkdepends=('python-pytest')
-provides=("python-$_name")
-replaces=("python-$_name")
-source=("$url/archive/v3.0.0/$_name-3.0.0.tar.gz"
-        
'jquery-optional_SRI_checks.patch::https://github.com/sphinx-contrib/jquery/pull/14.patch')
-b2sums=('5b160fa1434b111683824442a0ecb0da230dba7f29161495859845282e1b6471faa256be6fffc2d34c6fc97e4e188bb1247284613bf65bf322fcb77463b6cf83'
-        
'3e547eeefecb949e3678ce2966430e42c61426bf56951839609d12b76a86444f3369a1a2c531efe6189a1bdf3778e9bb73f3cc584f23fb3e32718f844d0b84ad')
+provides=('python-sphinxcontrib.jquery')
+replaces=('python-sphinxcontrib.jquery')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz";)
+sha256sums=('1620739f04e36a2c779f1a131a2dfd49b2fd07351bf1968ced074365933abc7a')
+b2sums=('3f0ba80c20c13a6543968b0c7234fd86ba238fa723191956e6b125ae709db8a048d585815e6ddb152b3808bcc857bb43c025ffa722a18f74ab265a667c9574b7')
 
-prepare() {
-  cd $_name-3.0.0
-  patch --forward --strip=1 --input=../jquery-optional_SRI_checks.patch
-}
-
 build() {
-  cd $_name-3.0.0
+  cd $_name-$pkgver
   python -m build --wheel --skip-dependency-check --no-isolation
 }
 
 check() {
-  cd $_name-3.0.0
+  cd $_name-$pkgver
   python -m venv --system-site-packages test-env
   test-env/bin/python -m installer dist/*.whl
   test-env/bin/python -m pytest
@@ -36,7 +30,7 @@
 }
 
 package() {
-  cd $_name-3.0.0
+  cd $_name-$pkgver
   python -m installer --destdir="$pkgdir" dist/*.whl
   install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname README.rst
   install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENCE

Reply via email to