mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
toot: add shell completion.
This commit is contained in:
parent
95730bc37e
commit
a96f190cd5
1 changed files with 12 additions and 3 deletions
|
@ -1,11 +1,12 @@
|
||||||
# Template file for 'toot'
|
# Template file for 'toot'
|
||||||
pkgname=toot
|
pkgname=toot
|
||||||
version=0.42.0
|
version=0.42.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=python3-pep517
|
build_style=python3-pep517
|
||||||
hostmakedepends="python3-setuptools python3-wheel"
|
_depends="python3-click python3-requests python3-BeautifulSoup4 python3-wcwidth
|
||||||
depends="python3-click python3-requests python3-BeautifulSoup4 python3-wcwidth
|
|
||||||
python3-urwid python3-urwidgets python3-tomlkit"
|
python3-urwid python3-urwidgets python3-tomlkit"
|
||||||
|
hostmakedepends="python3-setuptools python3-wheel ${_depends}"
|
||||||
|
depends="${_depends}"
|
||||||
checkdepends="${depends} python3-psycopg2 python3-pytest-xdist"
|
checkdepends="${depends} python3-psycopg2 python3-pytest-xdist"
|
||||||
short_desc="Mastodon CLI client"
|
short_desc="Mastodon CLI client"
|
||||||
maintainer="Jon Levin <jon@jefferiestube.net>"
|
maintainer="Jon Levin <jon@jefferiestube.net>"
|
||||||
|
@ -14,3 +15,11 @@ homepage="https://toot.bezdomni.net"
|
||||||
changelog="https://raw.githubusercontent.com/ihabunek/toot/master/CHANGELOG.md"
|
changelog="https://raw.githubusercontent.com/ihabunek/toot/master/CHANGELOG.md"
|
||||||
distfiles="https://github.com/ihabunek/toot/archive/refs/tags/${version}.tar.gz"
|
distfiles="https://github.com/ihabunek/toot/archive/refs/tags/${version}.tar.gz"
|
||||||
checksum=05502896b3a75aa93c8895bab75669653601af502ac6cf44d1ab33de373ef229
|
checksum=05502896b3a75aa93c8895bab75669653601af502ac6cf44d1ab33de373ef229
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
for shell in bash zsh fish; do
|
||||||
|
_TOOT_COMPLETE=${shell}_source PYTHONPATH="${DESTDIR}/${py3_sitelib}" \
|
||||||
|
$DESTDIR/usr/bin/toot > completion.$shell
|
||||||
|
vcompletion completion.$shell $shell
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue