George Rawlinson pushed to branch main at Arch Linux / Packaging / Packages / python-jsonschema
Commits: 1fe09450 by George Rawlinson at 2023-08-01T19:59:50+12:00 upgpkg: 4.18.4-1 * New upstream release. * Symlink license file. - - - - - 1 changed file: - PKGBUILD Changes: ===================================== PKGBUILD ===================================== @@ -5,7 +5,7 @@ # Contributor: Ismo Toijala <[email protected]> pkgname=python-jsonschema -pkgver=4.18.3 +pkgver=4.18.4 pkgrel=1 pkgdesc='An implementation of JSON Schema validation for Python' arch=('any') @@ -50,7 +50,7 @@ optdepends=( 'python-uri-template: for uri-template format' 'python-webcolors: for color format' ) -_commit='f79bad5fcd1baf5ac2fcd979dbd31616f913febd' +_commit='801a4cecc7a0cf3653db8e054fee5e800cd471e5' source=("$pkgname::git+$url#commit=$_commit") b2sums=('SKIP') @@ -83,6 +83,9 @@ package() { python -m installer --destdir="$pkgdir" dist/*.whl - # license - install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" json/LICENSE + # 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/${pkgname#python-}-$pkgver.dist-info/licenses/COPYING" \ + "$pkgdir/usr/share/licenses/$pkgname/COPYING" } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-jsonschema/-/commit/1fe09450cb2d21943a37358cc5b599ff9dcea331 -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-jsonschema/-/commit/1fe09450cb2d21943a37358cc5b599ff9dcea331 You're receiving this email because of your account on gitlab.archlinux.org.
