George Rawlinson pushed to branch main at Arch Linux / Packaging / Packages / 
python-jsonschema-specifications


Commits:
2102cb60 by George Rawlinson at 2023-08-01T19:57:42+12:00
upgpkg: 2023.7.1-1

* New upstream release.
* Symlink license file.
* Temporarily work-around for version mismatch[0].

[0]: https://github.com/python-jsonschema/jsonschema-specifications/issues/14

- - - - -


1 changed file:

- PKGBUILD


Changes:

=====================================
PKGBUILD
=====================================
@@ -1,7 +1,7 @@
 # Maintainer: George Rawlinson <[email protected]>
 
 pkgname=python-jsonschema-specifications
-pkgver=2023.06.1
+pkgver=2023.7.1
 pkgrel=1
 pkgdesc='The JSON Schema meta-schemas and vocabularies, exposed as a Registry'
 arch=('any')
@@ -16,14 +16,15 @@ makedepends=(
   'python-hatch-vcs'
 )
 checkdepends=('python-pytest')
-_commit='3fe8d96942adb274ceb54c63c62beae67af33970'
+_commit='c22c205e6bc2f93bebf42eefebafc49f96766bce'
 source=("$pkgname::git+$url#commit=$_commit")
 b2sums=('SKIP')
 
 pkgver() {
   cd "$pkgname"
 
-  git describe --tags | sed 's/^v//'
+  # https://github.com/python-jsonschema/jsonschema-specifications/issues/14
+  git describe --tags | sed -e 's/^v//' -e 's:\.0:.:'
 }
 
 build() {
@@ -43,6 +44,9 @@ package() {
 
   python -m installer --destdir="$pkgdir" dist/*.whl
 
-  # license
-  install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" COPYING
+  # symlink license file
+  local site_packages=$(python -c "import site; 
print(site.getsitepackages()[0])")
+  install -d "$pkgdir/usr/share/licenses/$pkgname"
+  ln -s 
"$site_packages/jsonschema_specifications-$pkgver.dist-info/licenses/COPYING" \
+    "$pkgdir/usr/share/licenses/$pkgname/COPYING"
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-jsonschema-specifications/-/commit/2102cb602ef307ba71a08b127b2cdec329f3cb6f

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-jsonschema-specifications/-/commit/2102cb602ef307ba71a08b127b2cdec329f3cb6f
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to