From 358652ee20f8bbc9ae8fa44d11b68ef114e97263 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sat, 6 Apr 2024 19:15:09 +0200 Subject: [PATCH 1/2] toot: add shell completion. --- srcpkgs/toot/template | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/srcpkgs/toot/template b/srcpkgs/toot/template index 251276fea759ae..560db74e849b15 100644 --- a/srcpkgs/toot/template +++ b/srcpkgs/toot/template @@ -1,11 +1,12 @@ # Template file for 'toot' pkgname=toot version=0.42.0 -revision=1 +revision=2 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" +hostmakedepends="python3-setuptools python3-wheel ${_depends}" +depends="${_depends}" checkdepends="${depends} python3-psycopg2 python3-pytest-xdist" short_desc="Mastodon CLI client" maintainer="Jon Levin " @@ -14,3 +15,11 @@ homepage="https://toot.bezdomni.net" changelog="https://raw.githubusercontent.com/ihabunek/toot/master/CHANGELOG.md" distfiles="https://github.com/ihabunek/toot/archive/refs/tags/${version}.tar.gz" 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 +} From c526af17e59cbe63eb892f934b326cb7794f4220 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sun, 14 Apr 2024 09:56:58 +0200 Subject: [PATCH 2/2] toot: update to 0.43.0. --- srcpkgs/toot/template | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/srcpkgs/toot/template b/srcpkgs/toot/template index 560db74e849b15..3bbfdab9f447f0 100644 --- a/srcpkgs/toot/template +++ b/srcpkgs/toot/template @@ -1,11 +1,11 @@ # Template file for 'toot' pkgname=toot -version=0.42.0 -revision=2 +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" -hostmakedepends="python3-setuptools python3-wheel ${_depends}" + python3-urwid python3-urwidgets python3-tomlkit python3-Pillow" +hostmakedepends="python3-setuptools python3-wheel python3-setuptools_scm ${_depends}" depends="${_depends}" checkdepends="${depends} python3-psycopg2 python3-pytest-xdist" short_desc="Mastodon CLI client" @@ -13,8 +13,8 @@ maintainer="Jon Levin " license="GPL-3.0-or-later" homepage="https://toot.bezdomni.net" changelog="https://raw.githubusercontent.com/ihabunek/toot/master/CHANGELOG.md" -distfiles="https://github.com/ihabunek/toot/archive/refs/tags/${version}.tar.gz" -checksum=05502896b3a75aa93c8895bab75669653601af502ac6cf44d1ab33de373ef229 +distfiles="${PYPI_SITE}/t/toot/toot-${version}.tar.gz" +checksum=6aa84c4b8df6e2214a3e735142bf5bd57b3b10aa08e35579425c5dbe3bc25ae7 post_install() { for shell in bash zsh fish; do