From 8deb62331acd678f6d1fbdec51ba48883c12e000 Mon Sep 17 00:00:00 2001 From: akhil Date: Wed, 20 Jul 2022 12:37:37 +0530 Subject: [PATCH] New package: xremap-0.4.4 Update srcpkgs/xremap/template Co-authored-by: meator added shell completions --- srcpkgs/xremap/template | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 srcpkgs/xremap/template diff --git a/srcpkgs/xremap/template b/srcpkgs/xremap/template new file mode 100644 index 000000000000..fea044db3635 --- /dev/null +++ b/srcpkgs/xremap/template @@ -0,0 +1,27 @@ +# Template file for 'xremap' +pkgname=xremap +version=0.4.4 +revision=1 +build_style=cargo +short_desc="Dynamic key remapper for X11 and Wayland" +maintainer="akhil " +license="MIT" +homepage="https://github.com/k0kubun/xremap" +changelog="https://raw.githubusercontent.com/k0kubun/xremap/master/CHANGELOG.md" +distfiles="https://github.com/k0kubun/xremap/archive/refs/tags/v${version}.tar.gz" +checksum=323cc9a900e7bc226008179619e49ee679caa6c9ade85e69bb5e710ffb0ed7ff + +post_build() { + xremap=$(find $GOPATH/bin -name xremap) + for shell in bash elvish fish powershell zsh; do + vtargetrun $xremap --completions $shell > xremap.$shell + done +} + +post_install() { + vlicense LICENSE + + for shell in bash elvish fish powershell zsh; do + vcompletion xremap.$shell $shell + done +}