26 lines
981 B
Bash
26 lines
981 B
Bash
# Template file for 'toot'
|
|
pkgname=toot
|
|
version=0.44.1
|
|
revision=1
|
|
build_style=python3-pep517
|
|
_depends="python3-click python3-requests python3-BeautifulSoup4 python3-wcwidth
|
|
python3-urwid python3-urwidgets python3-tomlkit python3-Pillow python3-term-image"
|
|
hostmakedepends="python3-setuptools python3-wheel python3-setuptools_scm ${_depends}"
|
|
depends="${_depends}"
|
|
checkdepends="${depends} python3-pytest-xdist"
|
|
short_desc="Mastodon CLI client"
|
|
maintainer="Jon Levin <jon@jefferiestube.net>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://toot.bezdomni.net"
|
|
changelog="https://raw.githubusercontent.com/ihabunek/toot/master/CHANGELOG.md"
|
|
distfiles="${PYPI_SITE}/t/toot/toot-${version}.tar.gz"
|
|
checksum=2887ba4c81c0a28448b260804ba6ac1f16178c188cd3a04621912acf764c9bd7
|
|
|
|
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
|
|
}
|