Daniel M. Capella pushed to branch main at Arch Linux / Packaging / Packages / 
python-jaraco.collections


Commits:
3cd69a28 by Daniel M. Capella at 2024-07-29T22:10:46-04:00
upgpkg: 5.0.1-1

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,7 +1,7 @@
 pkgbase = python-jaraco.collections
        pkgdesc = Models and classes to supplement the stdlib 'collections' 
module.
-       pkgver = 5.0.0
-       pkgrel = 2
+       pkgver = 5.0.1
+       pkgrel = 1
        url = https://github.com/jaraco/jaraco.collections
        arch = any
        license = MIT
@@ -16,7 +16,7 @@ pkgbase = python-jaraco.collections
        depends = python-jaraco.text
        conflicts = python-jaraco
        replaces = python-jaraco
-       source = 
jaraco.collections-5.0.0.tar.gz::https://github.com/jaraco/jaraco.collections/archive/refs/tags/v5.0.0.tar.gz
-       sha512sums = 
0fc71f4bf993c7591c74b585b9b70ef2ee664794db614f0520be11eb40928812d5e7870316bce55f42f32ad72dfc24c8802050bac51e395548b34e543d6b5a79
+       source = 
jaraco.collections-5.0.1.tar.gz::https://github.com/jaraco/jaraco.collections/archive/refs/tags/v5.0.1.tar.gz
+       sha512sums = 
b41aa4ed1544e35def2f882b3257bc5dcbb5163d8e3d4496a33b04aac0a854a503a959bccb397fdebf98471bf4525990728e8851a59b07458427c9d0c5aa72ef
 
 pkgname = python-jaraco.collections


=====================================
PKGBUILD
=====================================
@@ -4,8 +4,8 @@
 
 pkgname=python-jaraco.collections
 _name="${pkgname#python-}"
-pkgver=5.0.0
-pkgrel=2
+pkgver=5.0.1
+pkgrel=1
 pkgdesc="Models and classes to supplement the stdlib 'collections' module."
 arch=('any')
 url='https://github.com/jaraco/jaraco.collections'
@@ -16,10 +16,10 @@ checkdepends=('python-pytest' 'python-pytest-enabler' 
'python-pytest-mypy')
 conflicts=('python-jaraco')
 replaces=('python-jaraco')
 source=("$_name-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
-sha512sums=('0fc71f4bf993c7591c74b585b9b70ef2ee664794db614f0520be11eb40928812d5e7870316bce55f42f32ad72dfc24c8802050bac51e395548b34e543d6b5a79')
+sha512sums=('b41aa4ed1544e35def2f882b3257bc5dcbb5163d8e3d4496a33b04aac0a854a503a959bccb397fdebf98471bf4525990728e8851a59b07458427c9d0c5aa72ef')
 
 build() {
-  cd $_name-$pkgver
+  cd "$_name"-$pkgver
   SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python -m build --wheel --no-isolation
 }
 
@@ -28,14 +28,19 @@ check() {
     -vv
   )
 
-  cd $_name-$pkgver
+  cd "$_name"-$pkgver
   python -m pytest "${pytest_options[@]}"
 }
 
 package() {
-  cd $_name-$pkgver
+  cd "$_name"-$pkgver
   python -m installer --destdir="$pkgdir" dist/*.whl
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+
+  # 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"/"$_name"-$pkgver.dist-info/LICENSE \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 # vim:set ts=2 sw=2 et:



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-jaraco.collections/-/commit/3cd69a286b57fb47b9dff51376772c07e61bac7f

-- 
View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-jaraco.collections/-/commit/3cd69a286b57fb47b9dff51376772c07e61bac7f
You're receiving this email because of your account on gitlab.archlinux.org.


Reply via email to