aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/toot/template
blob: f69367110561790aaa869955ce0dce59d4abaa48 (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.43.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=6aa84c4b8df6e2214a3e735142bf5bd57b3b10aa08e35579425c5dbe3bc25ae7

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
}