Package Details: qmk-git 1.1.1.r0.g42481f2-1

Git Clone URL: https://aur.archlinux.org/qmk-git.git (read-only, click to copy)
Package Base: qmk-git
Description: CLI tool for customizing supported mechanical keyboards.
Upstream URL: https://github.com/qmk/qmk_cli
Licenses: MIT
Conflicts: qmk
Provides: qmk
Submitter: Curry
Maintainer: serene-arc
Last Packager: serene-arc
Votes: 3
Popularity: 0.010487
First Submitted: 2020-01-14 21:03 (UTC)
Last Updated: 2022-09-06 01:01 (UTC)

Latest Comments

1 2 3 Next › Last »

drwho commented on 2022-09-06 00:08 (UTC)

The hash for 50-qmk.rules_master changed again. It needs to be updated to this:

094d41a7005cc6ca12ddfa6d7dbaa8f4afa14a1beb10244ad97ee3b574016646

Static_Rocket commented on 2022-06-10 03:07 (UTC)

Requires python-pygments for qmk setup

serene-arc commented on 2021-11-22 23:48 (UTC)

They changed one of the files so that it failed the hash. I updated it so it works now

msnspk commented on 2021-11-22 18:38 (UTC) (edited on 2021-11-22 18:48 (UTC) by msnspk)

Package fails to install for me:

50-qmk.rules_master ... FAILED
==> ERROR: One or more files did not pass the validity check!

Does not seem like anything has changed upstream

serene-arc commented on 2021-09-10 23:56 (UTC)

Ah yeah it is. Thanks, I'll get those changes into the repository.

qubidt commented on 2021-09-10 16:37 (UTC)

No, I wasn't sure about those dependencies so I left them alone. In the diff I posted the only dependencies I messed with where the python- ones.

As for the qmk package, since this provides the same program, I think you should also add:

provides=('qmk')
conflicts=('qmk')

to the PKGBUILD to indicate that the two overlap. That's conventional for -git packages, I believe

serene-arc commented on 2021-09-10 04:54 (UTC)

Ah thanks, I'll look at all of those changes in a bit. Are you sure avrdude and everything like that should be removed? Presumably it's redundant with the qmk package but then that should be included in a dependency perhaps

qubidt commented on 2021-09-10 04:39 (UTC)

The udev rules give users write access so that they can flash the firmware. qmk setup will actually warn you to manually install the udev rules if the ones in the qmk_firmware repo do not match the ones in /usr/lib/rules.d. Installing them as part of qmk-git (like the official qmk package does) avoids this warning altogether.

If it's helpful, here's my local PKGBUILD after the changes I suggested:

diff --git a/PKGBUILD b/PKGBUILD
index 756b452..0d0707b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,7 @@
 # Maintainer: Serene-Arc
 pkgname=qmk-git
 pkgver=1.0.0.r0.g710dc3e
+_qmk_pkgver=master
 pkgrel=4
 pkgdesc="CLI tool for customizing supported mechanical keyboards."
 arch=('any')
@@ -23,22 +24,21 @@ depends=(
     'gcc'
     'git'
     'libusb-compat'
-    'python-appdirs'
-    'python-argcomplete'
-    'python-build'
-    'python-colorama'
     'python-dotty-dict'
     'python-hidapi'
     'python-hjson'
+    'python-jsonschema'
     'python-milc'
     'python-pyusb'
     'unzip'
     'wget'
     'zip'
-   )
-makedepends=('python' 'python-pip')
-source=('git+https://github.com/qmk/qmk_cli.git')
-sha256sums=('SKIP')
+    )
+makedepends=('python' 'python-pip' 'python-build')
+source=('git+https://github.com/qmk/qmk_cli.git'
+        "50-qmk.rules_${_qmk_pkgver}::https://raw.githubusercontent.com/qmk/qmk_firmware/${_qmk_pkgver}/util/udev/50-qmk.rules")
+sha256sums=('SKIP'
+            '8fede515a21d808ac25844db77e13f517e035121471001fc7b7f84273d48c4b1')

 pkgver() {
   cd "$_branch"
@@ -47,11 +47,15 @@ pkgver() {

 build() {
     cd "$_branch"
-   python -m build --wheel
+    python -m build --skip-dependency-check --wheel
 }

 package() {
-   cd "$_branch/dist"
-   PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps *.whl
-   python -O -m compileall "${pkgdir}/qmk-git"
+    cd "$_branch"
+    PIP_CONFIG_FILE=/dev/null pip install --isolated --root="$pkgdir" --ignore-installed --no-deps dist/*.whl
+    python -O -m compileall "${pkgdir}"
+
+    install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+    install -d "${pkgdir}/usr/lib/udev/rules.d"
+    install -Dm644 "${srcdir}/50-qmk.rules_${_qmk_pkgver}" "${pkgdir}/usr/lib/udev/rules.d/50-qmk.rules"
 }

serene-arc commented on 2021-09-10 03:48 (UTC)

What do those udev rules do? I'll clean up all the dependencies now

qubidt commented on 2021-09-09 18:46 (UTC)

The community/qmk package installs the udev rules from the qmk_firmware repo. Might be a good idea to do the same? It'll save the user from having to copy files into system directories.