From 285b3ff44dee9aaf3dc9653e2e4262149b840b4b Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 6 Feb 2025 00:39:30 -0800 Subject: [PATCH] add: tela-icon-theme (#3206) (#3230) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add: tela-icon-theme * fix: trigger update on new commits the release schedule of other themes from the same author seems spotty * fix: tela-icon-theme date * update tela-icon-theme license Co-authored-by: madomado Signed-off-by: Alberto García <4411661+GarciaLnk@users.noreply.github.com> --------- Signed-off-by: Alberto García <4411661+GarciaLnk@users.noreply.github.com> Co-authored-by: madomado (cherry picked from commit 4f124129c5dbd42d5adfb0163c9915b876ee9c16) Co-authored-by: Alberto García <4411661+GarciaLnk@users.noreply.github.com> --- anda/themes/tela-icon-theme/anda.hcl | 6 +++ .../tela-icon-theme/tela-icon-theme.spec | 38 +++++++++++++++++++ anda/themes/tela-icon-theme/update.rhai | 5 +++ 3 files changed, 49 insertions(+) create mode 100644 anda/themes/tela-icon-theme/anda.hcl create mode 100644 anda/themes/tela-icon-theme/tela-icon-theme.spec create mode 100644 anda/themes/tela-icon-theme/update.rhai diff --git a/anda/themes/tela-icon-theme/anda.hcl b/anda/themes/tela-icon-theme/anda.hcl new file mode 100644 index 0000000000..43fd26101f --- /dev/null +++ b/anda/themes/tela-icon-theme/anda.hcl @@ -0,0 +1,6 @@ +project "pkg" { + arches = ["x86_64"] + rpm { + spec = "tela-icon-theme.spec" + } +} diff --git a/anda/themes/tela-icon-theme/tela-icon-theme.spec b/anda/themes/tela-icon-theme/tela-icon-theme.spec new file mode 100644 index 0000000000..09d630121d --- /dev/null +++ b/anda/themes/tela-icon-theme/tela-icon-theme.spec @@ -0,0 +1,38 @@ +%global commit ba6354539f1b7802a15da662b35a3be287befb4d +%global commit_date 20250110 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: tela-icon-theme +Version: %commit_date.%shortcommit +Release: 1%?dist +Summary: Tela icon theme for linux desktops + +License: GPL-3.0-only +URL: https://github.com/vinceliuice/Tela-icon-theme/ +Source0: %url/archive/%commit/Tela-icon-theme-%commit.tar.gz + +BuildArch: noarch +BuildRequires: gtk-update-icon-cache fdupes + +%description +Tela icon theme for linux desktops. + +%prep +%autosetup -n Tela-icon-theme-%{commit} + +%build + +%install +mkdir -p %{buildroot}%{_datadir}/themes +./install.sh -c -d %{buildroot}%{_datadir}/icons + +%fdupes %buildroot%_datadir/icons/ + +%files +%license COPYING +%doc README.md + +%{_datadir}/icons/Tela*/ + +%changelog +%autochangelog diff --git a/anda/themes/tela-icon-theme/update.rhai b/anda/themes/tela-icon-theme/update.rhai new file mode 100644 index 0000000000..471421a57c --- /dev/null +++ b/anda/themes/tela-icon-theme/update.rhai @@ -0,0 +1,5 @@ +rpm.global("commit", gh_commit("vinceliuice/Tela-icon-theme")); +if rpm.changed() { + rpm.release(); + rpm.global("commit_date", date()); +}