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": "1b3c3bdf6289a348da09eed57d653d3f6dce1956"
"source": "local"
}
+26
View File
@@ -0,0 +1,26 @@
#!/bin/bash
# tzupdate publishes version tags but no GitHub Releases. Track its semver
# tags and hash the tagged source archive when a new version appears.
set -euo pipefail
REPO="https://github.com/cdown/tzupdate.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 tzupdate 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/cdown/tzupdate/archive/refs/tags/${best}.tar.gz" | sha256sum | cut -d' ' -f1)
jq -n --arg pkgver "$best" --arg sha256 "$sum" \
'{pkgver: $pkgver, sha256sums: {any: [$sha256]}}'
+1 -1
View File
@@ -5,7 +5,7 @@ pkgver=3.1.0
pkgrel=1
pkgdesc='Set the system timezone based on IP geolocation'
url=https://github.com/cdown/tzupdate
arch=('x86_64')
arch=('x86_64' 'aarch64')
options=(!lto)
license=('MIT')
makedepends=('cargo')