Own ARM-compatible recipes and sync upstream directly

This commit is contained in:
Ryan Hughes committed 2026-09-03 22:04:04 -04:00
1 parent c3c1f8fbab
commit d9705d0e2f
21 files changed
+204 -43

No files matched your search

+1 -2
View File
@@ -1,4 +1,3 @@
{
"source": "aur",
"upstream_commit": "a850f2d07e825f61cb01b87931d2ae5f1802dde1"
"source": "local"
}
+27
View File
@@ -0,0 +1,27 @@
#!/bin/bash
# qmk_hid marks every GitHub Release as a prerelease, including the versions
# it considers current. Track its semver tags instead and hash the tagged
# source archive only when a newer version appears.
set -euo pipefail
REPO="https://github.com/FrameworkComputer/qmk_hid.git"
best=""
while read -r tag; do
tag=${tag%\^\{\}}
[[ $tag =~ ^v([0-9]+\.[0-9]+\.[0-9]+)$ ]] || continue
version=${BASH_REMATCH[1]}
if [[ -z $best || $(vercmp "$version" "$best") -gt 0 ]]; then
best=$version
fi
done < <(git ls-remote --tags "$REPO" | sed 's#^.*refs/tags/##')
[[ -n $best ]] || { echo "No usable qmk_hid version tag found" >&2; exit 1; }
current=$(grep -m1 '^pkgver=' PKGBUILD | cut -d= -f2- | tr -d "\"'")
if [[ $(vercmp "$best" "$current") -le 0 ]]; then
echo '{}'
exit 0
fi
sum=$(curl -fsSL "https://github.com/FrameworkComputer/qmk_hid/archive/refs/tags/v${best}.tar.gz" | sha256sum | cut -d' ' -f1)
jq -n --arg pkgver "$best" --arg sha256 "$sum" \
'{pkgver: $pkgver, sha256sums: {any: [$sha256]}}'
+4 -4
View File
@@ -2,16 +2,16 @@
pkgname=qmk-hid
_srcname=qmk_hid
pkgver=0.1.11
pkgrel=3
pkgver=0.1.13
pkgrel=1
pkgdesc="Commandline tool for interacting with QMK devices over HID"
arch=('x86_64')
arch=('x86_64' 'aarch64')
url="https://github.com/FrameworkComputer/qmk_hid"
license=('BSD')
depends=('gcc-libs' 'systemd-libs' 'libcap')
makedepends=('cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
b2sums=('e898d27cfe8350f4a8cd2938a3d066935093daf1292f41fc10b8f1937059f2b59e4ac34a987f26c8258a5d3b15a900059024fe3a18ed793f7e3b524939ab4c71')
sha256sums=('8a058395b8ba56ff54308a681223f11a6032c54df42b4d0223143ccf09d0c858')
options=('!lto')
prepare() {