From deb3fdf31d541e4ecde6ae1bb26693732cef1f62 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Mon, 1 Sep 2025 11:45:23 -0700 Subject: [PATCH] fix: limine (#6249) (#6251) --- anda/system/limine/.gitignore | 1 + anda/system/limine/limine.spec | 12 ++++++------ anda/system/limine/update.rhai | 4 +++- andax/bump_extras.rhai | 4 ++++ 4 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 anda/system/limine/.gitignore diff --git a/anda/system/limine/.gitignore b/anda/system/limine/.gitignore new file mode 100644 index 0000000000..b43bf86b50 --- /dev/null +++ b/anda/system/limine/.gitignore @@ -0,0 +1 @@ +README.md diff --git a/anda/system/limine/limine.spec b/anda/system/limine/limine.spec index 8a7156319d..6afe803f68 100644 --- a/anda/system/limine/limine.spec +++ b/anda/system/limine/limine.spec @@ -1,11 +1,11 @@ Name: limine -Version: moved.to.codeberg +Version: 9.6.5 Release: 1%?dist Summary: Modern, advanced, portable, multiprotocol bootloader License: BSD-2-Clause URL: https://limine-bootloader.org -Source0: https://github.com/limine-bootloader/limine/releases/download/v%version/limine-%version.tar.gz -Source1: https://raw.githubusercontent.com/limine-bootloader/limine/v%version/README.md +Source0: https://codeberg.org/Limine/Limine/releases/download/v%version/limine-%version.tar.gz +Source1: https://codeberg.org/Limine/Limine/raw/tag/v%version/README.md Packager: madonuko BuildRequires: nasm mtools llvm lld clang make @@ -15,10 +15,10 @@ the reference implementation for the Limine boot protocol. %prep %autosetup -cp %SOURCE1 . +cp %{S:1} . %build -%configure --enable-all TOOLCHAIN_FOR_TARGET=llvm +%configure --enable-all CC_FOR_TARGET=clang LD_FOR_TARGET=ld.lld %make_build %install @@ -27,7 +27,7 @@ cp %SOURCE1 . %files %doc README.md 3RDPARTY.md FAQ.md CONFIG.md PROTOCOL.md COPYING USAGE.md -%doc %_datadir/doc/limine/LICENSES/LicenseRef-scancode-bsd-no-disclaimer-unmodified.txt +%license %_datadir/doc/limine/LICENSES/LicenseRef-scancode-bsd-no-disclaimer-unmodified.txt %license COPYING %_bindir/limine %_includedir/limine.h diff --git a/anda/system/limine/update.rhai b/anda/system/limine/update.rhai index bd43fbeb2c..eb0821f62d 100644 --- a/anda/system/limine/update.rhai +++ b/anda/system/limine/update.rhai @@ -1 +1,3 @@ -rpm.version(gh("limine-bootloader/limine")); +import "andax/bump_extras.rhai" as bump; + +rpm.version(bump::codeberg("Limine/Limine")); diff --git a/andax/bump_extras.rhai b/andax/bump_extras.rhai index 7db074847f..9e20bd55ed 100644 --- a/andax/bump_extras.rhai +++ b/andax/bump_extras.rhai @@ -2,6 +2,10 @@ fn codeberg_commit(repo) { return get(`https://codeberg.org/api/v1/repos/${repo}/commits?stat=false&verification=false&files=false&limit=1`).json_arr()[0].sha; } +fn codeberg(repo) { + return get(`https://codeberg.org/api/v1/repos/${repo}/releases/latest`).json().tag_name; +} + fn as_bodhi_ver(branch) { if branch.starts_with("el") { branch.crop(2);