From 0fd43d377a522be3bc19f4a532fa93f6cf92fe03 Mon Sep 17 00:00:00 2001 From: akhil Date: Wed, 20 Jul 2022 12:37:37 +0530 Subject: [PATCH 1/2] New package: xremap-0.4.4 Update srcpkgs/xremap/template Co-authored-by: meator --- srcpkgs/xremap/template | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 srcpkgs/xremap/template diff --git a/srcpkgs/xremap/template b/srcpkgs/xremap/template new file mode 100644 index 000000000000..d74cbc18ed97 --- /dev/null +++ b/srcpkgs/xremap/template @@ -0,0 +1,16 @@ +# 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_install() { + vlicense LICENSE +} From f196621c74f1f5cf48d4c1073c345338e641ae2a Mon Sep 17 00:00:00 2001 From: akhil Date: Thu, 21 Jul 2022 16:18:34 +0530 Subject: [PATCH 2/2] added shell completions --- srcpkgs/xremap/template | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/srcpkgs/xremap/template b/srcpkgs/xremap/template index d74cbc18ed97..fea044db3635 100644 --- a/srcpkgs/xremap/template +++ b/srcpkgs/xremap/template @@ -11,6 +11,17 @@ 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 }