Skip to content

Commit 1a12a8b

Browse files
committed
Merge branch 'el10' of github.com:terrapkg/packages into el10
2 parents f8bffef + 79a810f commit 1a12a8b

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

anda/tools/rpi-update/anda.hcl

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
project pkg {
2+
arches = ["aarch64"]
3+
rpm {
4+
spec = "rpi-update.spec"
5+
}
6+
labels {
7+
nightly = 1
8+
}
9+
}

anda/tools/rpi-update/rpi-update.spec

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
%define debug_package %nil
2+
3+
%global commit 7ce981c2125b2dd780f4e88dc320e1570dc4c51e
4+
%global commit_date 20240910
5+
%global shortcommit %(c=%{commit}; echo ${c:0:7})
6+
7+
Name: rpi-update
8+
Version: %commit_date.git~%shortcommit
9+
Release: 1%?dist
10+
Summary: An easier way to update the firmware of your Raspberry Pi.
11+
License: MIT
12+
URL: https://github.com/raspberrypi/rpi-update
13+
Source0: %url/archive/%commit.tar.gz
14+
Requires: bash
15+
ExclusiveArch: aarch64
16+
17+
%description
18+
%summary
19+
20+
%prep
21+
%autosetup -n rpi-update-%commit
22+
23+
%build
24+
25+
%install
26+
install -Dm755 rpi-update %buildroot%_bindir/rpi-update
27+
28+
%files
29+
%doc README.md
30+
%license LICENSE
31+
%_bindir/rpi-update
32+
33+
%changelog
34+
* Sat Dec 14 2024 Owen Zimmerman <[email protected]>
35+
- Package rpi-update

anda/tools/rpi-update/update.rhai

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
rpm.global("commit", gh_commit("raspberrypi/rpi-update"));
2+
if rpm.changed() {
3+
rpm.release();
4+
rpm.global("commit_date", date());
5+
}

0 commit comments

Comments
 (0)