From 999a47cfe0f71acbdba34e0ffd70fbf3a8a55a02 Mon Sep 17 00:00:00 2001 From: Wayne Van Son Date: Mon, 18 Jan 2021 16:17:48 +0000 Subject: [PATCH] New package: wally-cli-2.0.0 --- srcpkgs/wally-cli/INSTALL.msg | 2 ++ srcpkgs/wally-cli/template | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 srcpkgs/wally-cli/INSTALL.msg create mode 100644 srcpkgs/wally-cli/template diff --git a/srcpkgs/wally-cli/INSTALL.msg b/srcpkgs/wally-cli/INSTALL.msg new file mode 100644 index 00000000000..bf74d3bf595 --- /dev/null +++ b/srcpkgs/wally-cli/INSTALL.msg @@ -0,0 +1,2 @@ +Please add your user to the group 'plugdev' by executing the following: +usermod -aG plugdev \"\$USER\" diff --git a/srcpkgs/wally-cli/template b/srcpkgs/wally-cli/template new file mode 100644 index 00000000000..b938c2df6d7 --- /dev/null +++ b/srcpkgs/wally-cli/template @@ -0,0 +1,35 @@ +# Template file for 'wally-cli' +pkgname=wally-cli +version=2.0.0 +revision=1 +archs="x86_64" +wrksrc="wally-cli-${version}-linux" +build_style=go +go_import_path="github.com/zsa/wally-cli" +makedepends="libusb-devel pkg-config go-bindata" +short_desc="Flashing firmware for ZSA keyboards" +maintainer="Wayne Van Son " +license="MIT" +homepage="https://www.zsa.io/wally/" +distfiles="https://github.com/zsa/wally-cli/archive/${version}-linux.tar.gz" +checksum="2641c7deededeeba1aecf6b3ae3e87050a0cfd81c8b41323b2304ebe21e61745" +conf_files="/usr/lib/udev/rules.d/50-wally.rules" +system_groups="plugdev" + +post_install() { + # # [NOMERGE] - License required by package + # # https://github.com/zsa/wally-cli/pull/3/commits/b832f6b1997c0a7ee206e08f3d03127885378265 + vlicense license.md + + # WALLY UDEV RULE FOR DEVICE RELATED EVENT + vmkdir /usr/lib/udev/rules.d/ + cat <