Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / python-argcomplete
Commits: 23122e0e by Felix Yan at 2024-05-10T19:11:48+00:00 upgpkg: 3.1.1-3: include bash/zsh completions. fixes #2 - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,7 +1,7 @@ pkgbase = python-argcomplete pkgdesc = Easy, extensible command line tab completion of arguments for your Python script pkgver = 3.1.1 - pkgrel = 2 + pkgrel = 3 url = https://github.com/kislyuk/argcomplete arch = any license = Apache-2.0 ===================================== PKGBUILD ===================================== @@ -4,7 +4,7 @@ pkgname=python-argcomplete _pyname=argcomplete pkgver=3.1.1 -pkgrel=2 +pkgrel=3 pkgdesc='Easy, extensible command line tab completion of arguments for your Python script' url='https://github.com/kislyuk/argcomplete' arch=('any') @@ -42,6 +42,11 @@ check() { package() { cd ${_pyname} python -m installer --destdir="$pkgdir" dist/*.whl + + local _site_packages=$(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())") + install -dm755 "$pkgdir"/usr/share/bash-completion/completions "$pkgdir"/usr/share/zsh/site-functions + ln -s ../../../..${_site_packages}/argcomplete/bash_completion.d/_python-argcomplete -t "$pkgdir"/usr/share/bash-completion/completions/ + ln -s ../../../..${_site_packages}/argcomplete/bash_completion.d/_python-argcomplete -t "$pkgdir"/usr/share/zsh/site-functions/ } # vim: ts=2 sw=2 et: View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-argcomplete/-/commit/23122e0ec67c5bb87e105f738afea63a5dc4d0a7 -- This project does not include diff previews in email notifications. View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python-argcomplete/-/commit/23122e0ec67c5bb87e105f738afea63a5dc4d0a7 You're receiving this email because of your account on gitlab.archlinux.org.