From c5efc0af848f498aa789e4e489257e235a66e660 Mon Sep 17 00:00:00 2001 From: madomado Date: Wed, 23 Oct 2024 12:52:16 +0800 Subject: [PATCH] fix: muon (#2294) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: muon apparently they provide stuff that are not from git sources somehow…? Signed-off-by: madomado * Update update.rhai Signed-off-by: madomado * Update muon.spec Signed-off-by: madomado --------- Signed-off-by: madomado --- anda/tools/buildsys/muon/muon.spec | 3 ++- anda/tools/buildsys/muon/update.rhai | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/anda/tools/buildsys/muon/muon.spec b/anda/tools/buildsys/muon/muon.spec index b2b2789fb7..151d7eba2b 100644 --- a/anda/tools/buildsys/muon/muon.spec +++ b/anda/tools/buildsys/muon/muon.spec @@ -1,5 +1,5 @@ Name: muon -Version: 0.4.0 +Version: 0.3.1 Release: 1%?dist Summary: A meson-compatible build system @@ -15,6 +15,7 @@ BuildRequires: libcurl-devel BuildRequires: libarchive-devel BuildRequires: libpkgconf-devel BuildRequires: scdoc +BuildRequires: git-core %description An implementation of the meson build system in c99 with minimal dependencies. diff --git a/anda/tools/buildsys/muon/update.rhai b/anda/tools/buildsys/muon/update.rhai index 4425e2426d..61177c274a 100644 --- a/anda/tools/buildsys/muon/update.rhai +++ b/anda/tools/buildsys/muon/update.rhai @@ -1 +1,4 @@ -rpm.version(get("https://muon.build/releases/").json_arr().pop().name); +let versions = get("https://muon.build/releases/").json().keys(); +versions.sort(); +versions.pop(); +rpm.version(versions.pop());