| author | George Rawlinson
<grawlinson@archlinux.org> 2023-08-15 08:11:02 UTC |
| committer | George Rawlinson
<grawlinson@archlinux.org> 2023-08-15 08:11:02 UTC |
| parent | 96a7a61473f6db59f620d1611734be130abd82fc |
| PKGBUILD | +7 | -4 |
diff --git a/PKGBUILD b/PKGBUILD index e1d28f8..4bacd71 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,7 +2,7 @@ # Contributor: SZanko, szanko at protonmail dot com pkgname=python-shtab -pkgver=1.6.1 +pkgver=1.6.4 pkgrel=1 pkgdesc='Automagic shell tab completion for Python CLI applications' arch=('any') @@ -21,7 +21,7 @@ checkdepends=( 'python-pytest-cov' 'python-pytest-timeout' ) -_commit='80a105058bafd32c0669eb2e2b477502f195c48e' +_commit='3d614484fbf664adc9b898b5f5f82a9b793482e3' source=("$pkgname::git+$url#commit=$_commit") b2sums=('SKIP') @@ -64,6 +64,9 @@ package() { install -vDm644 bash.completion "$pkgdir/usr/share/bash-completion/completions/shtab" install -vDm644 zsh.completion "$pkgdir/usr/share/zsh/site-functions/_shtab" - # license - install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENCE + # 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/LICENSE" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }