bottles-opener, bt-volume-step, cachy-auto-update, face-unlock, face-unlock-bin, middleclick-autoscroll: source from git.felo.gg [skip ci]
This commit is contained in:
1 parent
30617166f5
commit
06bc509002
12 files changed
+72
-64
No files matched your search
@@ -1,5 +1,5 @@
|
||||
# cachy-auto-update - unattended background updates for CachyOS
|
||||
# (https://github.com/LoonixTools/cachy-auto-update).
|
||||
# (https://git.felo.gg/LoonixTools/cachy-auto-update).
|
||||
#
|
||||
# Pure shell plus a gettext catalog and a scdoc man page, so the PKGBUILD just
|
||||
# runs the upstream Makefile against the release tarball. Nothing is prebuilt
|
||||
@@ -12,7 +12,10 @@ UPSTREAM_REPO="LoonixTools/cachy-auto-update"
|
||||
BUILD_DEPS=(gettext scdoc)
|
||||
|
||||
latest_version() {
|
||||
gh api "repos/$UPSTREAM_REPO/releases/latest" --jq '.tag_name' | sed 's/^v//'
|
||||
# the highest vX.Y.Z tag; not every release has a release page
|
||||
curl -sf "https://git.felo.gg/api/v1/repos/$UPSTREAM_REPO/tags?limit=50" \
|
||||
| jq -r '.[].name | select(test("^v[0-9]+(\\.[0-9]+)*$"))' \
|
||||
| sed 's/^v//' | sort -V | tail -n 1
|
||||
}
|
||||
|
||||
# refresh_checksums <version> <pkgbuild-path>
|
||||
@@ -20,7 +23,7 @@ refresh_checksums() {
|
||||
local ver="$1" pkgbuild="$2"
|
||||
local sha
|
||||
|
||||
sha="$(curl -sfL "https://github.com/$UPSTREAM_REPO/archive/refs/tags/v$ver.tar.gz" \
|
||||
sha="$(curl -sfL "https://git.felo.gg/$UPSTREAM_REPO/archive/v$ver.tar.gz" \
|
||||
| sha256sum | cut -d' ' -f1)"
|
||||
|
||||
sed -i "s|^sha256sums=.*|sha256sums=('$sha')|" "$pkgbuild"
|
||||
|
||||
Reference in new issue
Block a user