mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
* chore(uwufetch): Update for new semi-active branch
* fix: Spec
* Try `gh`??
* fix: I see the issue...cursed
* Unintelligent moment
* Just do this
---------
(cherry picked from commit 872a56a20e)
Signed-off-by: Gilver <rockgrub@disroot.org>
Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
rpm.global("commit", gh_commit("ad-oliviero/uwufetch"));
|
||||
let json = get(`https://api.github.com/repos/ad-oliviero/uwufetch/commits/development`).json();
|
||||
let c = json.sha;
|
||||
let d = json.commit.author.date;
|
||||
rpm.global("commit", c);
|
||||
if rpm.changed() {
|
||||
rpm.release();
|
||||
rpm.global("commit_date", date());
|
||||
rpm.global("fulldate", d);
|
||||
d.truncate(10);
|
||||
let ver = gh_tag("ad-oliviero/uwufetch");
|
||||
ver.crop(1);
|
||||
rpm.global("ver", ver);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
%global commit f3d4503e72fa5b7dff466e527453cfbf2c95cc01
|
||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||
%global commit_date 20251128
|
||||
%global ver .1
|
||||
%global fulldate 2024-02-14
|
||||
%global commit_date %(echo %{fulldate} | sed 's/-//g')
|
||||
%global ver 2.1
|
||||
%global debug_package %{nil}
|
||||
|
||||
Name: uwufetch
|
||||
|
||||
Reference in New Issue
Block a user