From 79a810f52408ca899088a8dc80ba72b9aa5c2c75 Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Sat, 14 Dec 2024 23:59:31 -0800 Subject: [PATCH] Add: rpi-update (#2634) (#2642) --- anda/tools/rpi-update/anda.hcl | 9 +++++++ anda/tools/rpi-update/rpi-update.spec | 35 +++++++++++++++++++++++++++ anda/tools/rpi-update/update.rhai | 5 ++++ 3 files changed, 49 insertions(+) create mode 100644 anda/tools/rpi-update/anda.hcl create mode 100644 anda/tools/rpi-update/rpi-update.spec create mode 100644 anda/tools/rpi-update/update.rhai diff --git a/anda/tools/rpi-update/anda.hcl b/anda/tools/rpi-update/anda.hcl new file mode 100644 index 0000000000..d9fe980457 --- /dev/null +++ b/anda/tools/rpi-update/anda.hcl @@ -0,0 +1,9 @@ +project pkg { + arches = ["aarch64"] + rpm { + spec = "rpi-update.spec" + } + labels { + nightly = 1 + } +} diff --git a/anda/tools/rpi-update/rpi-update.spec b/anda/tools/rpi-update/rpi-update.spec new file mode 100644 index 0000000000..c7a59ca958 --- /dev/null +++ b/anda/tools/rpi-update/rpi-update.spec @@ -0,0 +1,35 @@ +%define debug_package %nil + +%global commit 7ce981c2125b2dd780f4e88dc320e1570dc4c51e +%global commit_date 20240910 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: rpi-update +Version: %commit_date.git~%shortcommit +Release: 1%?dist +Summary: An easier way to update the firmware of your Raspberry Pi. +License: MIT +URL: https://github.com/raspberrypi/rpi-update +Source0: %url/archive/%commit.tar.gz +Requires: bash +ExclusiveArch: aarch64 + +%description +%summary + +%prep +%autosetup -n rpi-update-%commit + +%build + +%install +install -Dm755 rpi-update %buildroot%_bindir/rpi-update + +%files +%doc README.md +%license LICENSE +%_bindir/rpi-update + +%changelog +* Sat Dec 14 2024 Owen Zimmerman +- Package rpi-update diff --git a/anda/tools/rpi-update/update.rhai b/anda/tools/rpi-update/update.rhai new file mode 100644 index 0000000000..cc057cdfbb --- /dev/null +++ b/anda/tools/rpi-update/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("raspberrypi/rpi-update")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}