And this is a curl/jq script that does the same thing but doesn't require python:
curl -sSf "https://dev.azure.com/EverestAPI/Olympus/_apis/build/builds" \
| jq -e '[.value[] | select(.sourceBranch == "refs/heads/stable") | .id] | max'
Git Clone URL: | https://aur.archlinux.org/olympus-bin.git (read-only, click to copy) |
---|---|
Package Base: | olympus-bin |
Description: | A mod manager for Celeste |
Upstream URL: | https://github.com/EverestAPI/Olympus |
Licenses: | MIT |
Submitter: | Majora320 |
Maintainer: | crab2313 |
Last Packager: | crab2313 |
Votes: | 6 |
Popularity: | 0.000000 |
First Submitted: | 2021-02-09 23:17 (UTC) |
Last Updated: | 2024-03-29 06:36 (UTC) |
And this is a curl/jq script that does the same thing but doesn't require python:
curl -sSf "https://dev.azure.com/EverestAPI/Olympus/_apis/build/builds" \
| jq -e '[.value[] | select(.sourceBranch == "refs/heads/stable") | .id] | max'
Like I think even something like this should work (can move pkgver() below the header just to make it nicer as well)
diff --git a/PKGBUILD b/PKGBUILD
index da8ade3..eb8853a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
# Maintainer: Moses Miller <Majora320@gmail.com>
-fetch_version() {
+pkgver() {
python <<EOF
import requests,json
@@ -20,7 +20,7 @@ EOF
}
pkgname=olympus-bin
-pkgver=$(fetch_version)
+pkgver=2551
pkgrel=1
pkgdesc='A mod manager for Celeste'
arch=('x86_64')
Is there a reason you're not using the pkgver()
function to fetch the current version?
I encountered a packaging error:
[pietro@notgreen olympus-bin]$ makepkg -sirc
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'requests'
==> ERRORE: pkgver non può essere vuoto.
(the last part translates to "ERROR: pkgver can't be empty")
If you encountered wrong checksum error like this:
==> Validating source files with sha256sums...
olympus-bin-2551.zip ... FAILED
==> ERROR: One or more files did not pass the validity check!
Please run updpkgsums and build it again. Also, please flag this package out of date since there is a new stable build.
Download link is broken again, here's an updated PKGBUILD.
The download link is broken.
Pinned Comments
crab2313 commented on 2022-03-04 09:25 (UTC)
If you encountered wrong checksum error like this:
Please run updpkgsums and build it again. Also, please flag this package out of date since there is a new stable build.