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


Commits:
d475e271 by Daniel M. Capella at 2024-08-01T21:14:04-04:00
upgpkg: 3.12.8-1

- - - - -


2 changed files:

- .SRCINFO
- PKGBUILD


Changes:

=====================================
.SRCINFO
=====================================
@@ -1,6 +1,6 @@
 pkgbase = python-mocket
        pkgdesc = Socket Mock Framework - for all kinds of socket animals, 
web-clients included - with gevent/asyncio/SSL support
-       pkgver = 3.12.5
+       pkgver = 3.12.8
        pkgrel = 1
        url = https://github.com/mindflayer/python-mocket
        arch = any
@@ -27,7 +27,7 @@ pkgbase = python-mocket
        depends = python-httptools
        depends = python-magic
        depends = python-urllib3
-       source = 
https://github.com/mindflayer/python-mocket/archive/3.12.5/python-mocket-3.12.5.tar.gz
-       sha512sums = 
c482bd266ffb5ef37c400f238de03ede46c6095a61623b29f569bf1982f42999838d8a367489e3da5197b8b0693b22a35b15cf9c9b4cf3e0e8ad8bfb79c90e9c
+       source = 
https://github.com/mindflayer/python-mocket/archive/3.12.8/python-mocket-3.12.8.tar.gz
+       sha512sums = 
1188423ee110967b2bd64cd5760ceda68ec852df4a0b1e2e169bc59714f28fecc777b7e676fcb8be104e1f6cd86bd34bd8507e1ea2dd65b4f6650c1231ce9c0e
 
 pkgname = python-mocket


=====================================
PKGBUILD
=====================================
@@ -1,7 +1,7 @@
 # Maintainer: Felix Yan <[email protected]>
 
 pkgname=python-mocket
-pkgver=3.12.5
+pkgver=3.12.8
 pkgrel=1
 pkgdesc="Socket Mock Framework - for all kinds of socket animals, web-clients 
included - with gevent/asyncio/SSL support"
 url="https://github.com/mindflayer/python-mocket";
@@ -13,7 +13,7 @@ checkdepends=('pifpaf' 'python-pytest' 
'python-pytest-asyncio' 'python-aiohttp'
               'python-gevent' 'python-httpx' 'python-pook' 'python-redis' 
'python-asgiref'
               'python-requests' 'python-sure' 'python-xxhash' 'redis')
 
source=("https://github.com/mindflayer/python-mocket/archive/$pkgver/$pkgname-$pkgver.tar.gz";)
-sha512sums=('c482bd266ffb5ef37c400f238de03ede46c6095a61623b29f569bf1982f42999838d8a367489e3da5197b8b0693b22a35b15cf9c9b4cf3e0e8ad8bfb79c90e9c')
+sha512sums=('1188423ee110967b2bd64cd5760ceda68ec852df4a0b1e2e169bc59714f28fecc777b7e676fcb8be104e1f6cd86bd34bd8507e1ea2dd65b4f6650c1231ce9c0e')
 
 prepare() {
   cd python-mocket-$pkgver
@@ -36,5 +36,9 @@ package() {
   cd python-mocket-$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"/mocket-$pkgver.dist-info/LICENSE \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }



View it on GitLab: 
https://gitlab.archlinux.org/archlinux/packaging/packages/python-mocket/-/commit/d475e271e7a5fa0c326fba9f8fad6751cfa33361

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


Reply via email to