git » python-mdit_py_plugins.git » commit 6763deb

upgpkg: 0.4.1-1

author Daniel M. Capella
2024-05-12 21:08:14 UTC
committer Daniel M. Capella
2024-05-12 21:08:14 UTC
parent 487f111dc2deda09705f93eda65af4cce9614c5b

upgpkg: 0.4.1-1

.SRCINFO +4 -4
PKGBUILD +8 -4

diff --git a/.SRCINFO b/.SRCINFO
index c1387ce..7eadeda 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = python-mdit_py_plugins
 	pkgdesc = Collection of core plugins for markdown-it-py
-	pkgver = 0.4.0
-	pkgrel = 2
+	pkgver = 0.4.1
+	pkgrel = 1
 	url = https://github.com/executablebooks/mdit-py-plugins
 	arch = any
 	license = MIT
@@ -11,7 +11,7 @@ pkgbase = python-mdit_py_plugins
 	makedepends = python-installer
 	makedepends = python-flit-core
 	depends = python-markdown-it-py
-	source = python-mdit_py_plugins-0.4.0.tar.gz::https://github.com/executablebooks/mdit-py-plugins/archive/v0.4.0.tar.gz
-	sha512sums = cdcce7a3819120923b7725daae0bf7a833c4da4487c49ff1a067fecf7d5e8f7a7be2fae03f3b821c766d7d6ebed4a298755ad5edb00adf73300a76a5663d67d6
+	source = python-mdit_py_plugins-0.4.1.tar.gz::https://github.com/executablebooks/mdit-py-plugins/archive/v0.4.1.tar.gz
+	sha512sums = d2f5c59bf2a17ce441de18f815624cb6f61202f111176c5f1c7745e430d59e8690ce8a5f9da2402bd34dcc5cf4dc38377990df649fbf3256216bc82cdfc6333a
 
 pkgname = python-mdit_py_plugins
diff --git a/PKGBUILD b/PKGBUILD
index 3f3fbd8..7d60b8c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,8 +4,8 @@
 
 _pkgname=mdit-py-plugins
 pkgname=python-mdit_py_plugins
-pkgver=0.4.0
-pkgrel=2
+pkgver=0.4.1
+pkgrel=1
 pkgdesc='Collection of core plugins for markdown-it-py'
 arch=('any')
 url='https://github.com/executablebooks/mdit-py-plugins'
@@ -14,7 +14,7 @@ depends=('python-markdown-it-py')
 makedepends=('python-build' 'python-installer' 'python-flit-core')
 checkdepends=('python-pytest' 'python-pytest-regressions')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha512sums=('cdcce7a3819120923b7725daae0bf7a833c4da4487c49ff1a067fecf7d5e8f7a7be2fae03f3b821c766d7d6ebed4a298755ad5edb00adf73300a76a5663d67d6')
+sha512sums=('d2f5c59bf2a17ce441de18f815624cb6f61202f111176c5f1c7745e430d59e8690ce8a5f9da2402bd34dcc5cf4dc38377990df649fbf3256216bc82cdfc6333a')
 
 build() {
   cd $_pkgname-$pkgver
@@ -33,7 +33,11 @@ package() {
 
   python -m installer -d "$pkgdir" dist/*.whl
 
-  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/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//-/_}"-$pkgver.dist-info/LICENSE \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
 }
 
 # vim:set ts=2 sw=2 et: