Expand declarative upstream providers

This commit is contained in:
Ryan Hughes committed 2026-09-03 22:13:59 -04:00
1 parent d9705d0e2f
commit b89770c1da
17 files changed
+372 -209

No files matched your search

+12 -1
View File
@@ -1,3 +1,14 @@
{
"source": "local"
"source": "local",
"upstream": {
"git_tags": "https://gitlab.com/vicamo/v4l2-relayd.git",
"tag_pattern": "upstream/{pkgver}",
"sources": {
"any": [
"https://gitlab.com/vicamo/v4l2-relayd/-/archive/upstream/{pkgver}/v4l2-relayd-upstream-{pkgver}.tar.gz",
"file:0001-reset-output-on-idle.patch",
"file:0002-escape-optional-splashsrc-expansion.patch"
]
}
}
}
@@ -1,26 +0,0 @@
#!/bin/bash
# v4l2-relayd uses GitLab tags named upstream/<version>. Keep Omarchy's local
# patches and follow that authoritative tag stream directly.
set -euo pipefail
REPO="https://gitlab.com/vicamo/v4l2-relayd.git"
best=""
while read -r tag; do
tag=${tag%\^\{\}}
[[ $tag =~ ^upstream/([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 v4l2-relayd upstream 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://gitlab.com/vicamo/v4l2-relayd/-/archive/upstream/${best}/v4l2-relayd-upstream-${best}.tar.gz" | sha256sum | cut -d' ' -f1)
jq -n --arg pkgver "$best" --arg sha256 "$sum" \
'{pkgver: $pkgver, sha256sums: {any: [$sha256, "SKIP", "SKIP"]}}'
+2 -2
View File
@@ -19,8 +19,8 @@ source=("https://gitlab.com/vicamo/v4l2-relayd/-/archive/upstream/${pkgver}/v4l2
"0001-reset-output-on-idle.patch"
"0002-escape-optional-splashsrc-expansion.patch")
sha256sums=('0c063edf18dcc6edcdef46e695128cfc2b2d60964ea8538c7e79a2454310c53d'
'SKIP'
'SKIP')
'07722a8708ced48d2db9575f3eae5b1266868d259d260635e06e9a10baddec78'
'3cb89056af276eed7a45dfc96435e8e48558e4e11c96560360d46d631b1c0b6c')
prepare() {
cd "$srcdir/${pkgname}-upstream-${pkgver}"