From e1a67b2f944d14aa4cc56f493fe9db90d8c6ec4a Mon Sep 17 00:00:00 2001 From: Wayne Van Son Date: Mon, 15 Mar 2021 01:55:20 +1100 Subject: [PATCH] New package: wally-cli-2.0.0 --- srcpkgs/wally-cli/INSTALL.msg | 4 ++++ srcpkgs/wally-cli/files/50-wally.rules | 11 +++++++++++ srcpkgs/wally-cli/files/LICENSE | 9 +++++++++ srcpkgs/wally-cli/template | 24 ++++++++++++++++++++++++ 4 files changed, 48 insertions(+) create mode 100644 srcpkgs/wally-cli/INSTALL.msg create mode 100644 srcpkgs/wally-cli/files/50-wally.rules create mode 100644 srcpkgs/wally-cli/files/LICENSE 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 000000000000..2ed1727da203 --- /dev/null +++ b/srcpkgs/wally-cli/INSTALL.msg @@ -0,0 +1,4 @@ +Please add your user to the group 'plugdev' by executing the following: + +groupadd -f plugdev +usermod -aG plugdev "$USER" diff --git a/srcpkgs/wally-cli/files/50-wally.rules b/srcpkgs/wally-cli/files/50-wally.rules new file mode 100644 index 000000000000..742cde5c1f91 --- /dev/null +++ b/srcpkgs/wally-cli/files/50-wally.rules @@ -0,0 +1,11 @@ +# These rules are derived from the instructions at +# https://github.com/zsa/wally/wiki/Linux-install#2-create-a-udev-rule-file + +# Teensy rules for the Ergodox EZ +ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", ENV{ID_MM_DEVICE_IGNORE}="1" +ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789A]?", ENV{MTP_NO_PROBE}="1" +SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789ABCD]?", MODE:="0666" +KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789B]?", MODE:="0666" + +# STM32 rules for the Moonlander and Planck EZ +SUBSYSTEMS=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE:="0666", SYMLINK+="stm32_dfu" \ No newline at end of file diff --git a/srcpkgs/wally-cli/files/LICENSE b/srcpkgs/wally-cli/files/LICENSE new file mode 100644 index 000000000000..45bbd402c83a --- /dev/null +++ b/srcpkgs/wally-cli/files/LICENSE @@ -0,0 +1,9 @@ +## License (MIT) + +Copyright 2019-2020, ZSA Technology Labs Inc. + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/srcpkgs/wally-cli/template b/srcpkgs/wally-cli/template new file mode 100644 index 000000000000..ffaf24c0b8f6 --- /dev/null +++ b/srcpkgs/wally-cli/template @@ -0,0 +1,24 @@ +# Template file for 'wally-cli' +pkgname=wally-cli +version=2.0.0 +revision=1 +archs="x86_64 x86_64-musl i686" +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" +nocross="yes" + +post_install() { + # vendoring license is obsolete in the next release + vlicense "$FILESDIR/LICENSE" + vinstall "$FILESDIR/50-wally.rules" 0644 /usr/lib/udev/rules.d +}