aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/toot/template
blob: fa6f3cd50ddd1b0a04686d6a11b5499a2084efbe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# 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
}