Own ARM-compatible recipes and sync upstream directly
This commit is contained in:
21 files changed
+204
-43
No files matched your search
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"source": "aur",
|
||||
"upstream_commit": "1b3c3bdf6289a348da09eed57d653d3f6dce1956"
|
||||
"source": "local"
|
||||
}
|
||||
Executable
+26
@@ -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]}}'
|
||||
@@ -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')
|
||||
|
||||
Reference in new issue
Block a user