From ca99c1cb27a418746c2b19927eba3456481c874a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Christian=20Gr=C3=BCnhage?= Date: Sun, 16 Jan 2022 13:12:25 +0100 Subject: [PATCH] intermodal: update to 0.1.12. --- srcpkgs/intermodal/template | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/srcpkgs/intermodal/template b/srcpkgs/intermodal/template index bb0e6148ad02..f4180bd33998 100644 --- a/srcpkgs/intermodal/template +++ b/srcpkgs/intermodal/template @@ -1,11 +1,27 @@ # Template file for 'intermodal' pkgname=intermodal -version=0.1.10 +version=0.1.12 revision=1 build_style=cargo +build_helper=qemu +make_check_args="-- --skip subcommand::torrent::verify::tests::output_multiple --skip subcommand::torrent::verify::tests::output_color" short_desc="User-friendly and featureful command-line BitTorrent metainfo utility" maintainer="Pika " license="CC0-1.0" homepage="https://github.com/casey/intermodal" distfiles="https://github.com/casey/intermodal/archive/v${version}.tar.gz" -checksum=8bb3e4f549e5c4446543babd741fec0cd7c42da4d49eca3e98c5f7611ad59618 +checksum=cd62894e519dc5aa0284a5f48aab86e1a45c3bc96b8a5481741adb6960d4751a + +post_build() { + IMDL="target/${RUST_TARGET}/release/imdl" + + for shell in zsh bash fish; do + vtargetrun $IMDL completions ${shell} >imdl.${shell} + done +} + +post_install() { + for shell in zsh bash fish; do + vcompletion imdl.${shell} ${shell} + done +}