void-packages/srcpkgs/toot/template

26 lines
981 B
Bash

# Template file for 'toot'
pkgname=toot
version=0.45.0
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=ba209fe60c22f4efda7d882381492ca8639d52c60b6012eb1a10ae1ca70db7cf
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
}