mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-02 09:52:18 +00:00
Add tau-hydrogen spec
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project "pkg" {
|
||||
rpm {
|
||||
spec = "tau-hydrogen.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
import os
|
||||
import requests
|
||||
import re
|
||||
|
||||
NAME = 'tau-hydrogen'
|
||||
REPO = "tau-OS/tau-hydrogen"
|
||||
REGEX_VER = r'Version:\s*([\.\d]+)\n'
|
||||
SPEC = f"{NAME}.spec"
|
||||
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
|
||||
|
||||
|
||||
ver = requests.get(LINK).json()['tag_name']
|
||||
with open(SPEC, 'r') as f:
|
||||
matches = re.findall(REGEX_VER, f.read())
|
||||
if not len(matches): exit(f"{NAME}: Failed to match regex!")
|
||||
cur = matches[0]
|
||||
if ver == cur: exit(f'{NAME}: Up to date!')
|
||||
print(f'{NAME}: {cur} -> {ver}')
|
||||
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
|
||||
@@ -0,0 +1,35 @@
|
||||
Summary: tauOS Icon Theme
|
||||
Name: tau-hydrogen
|
||||
Version: 1.0.1
|
||||
Release: 1%{?dist}
|
||||
License: GPLv3
|
||||
URL: https://github.com/tau-OS/tau-hydrogen
|
||||
Source0: https://github.com/tau-OS/tau-hydrogen/archive/refs/tags/%{version}.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: meson
|
||||
BuildRequires: ninja-build
|
||||
|
||||
%description
|
||||
Hydrogen is the default icon theme in tauOS
|
||||
|
||||
%prep
|
||||
%autosetup -n tau-hydrogen-%{version}
|
||||
|
||||
%build
|
||||
%meson
|
||||
%meson_build
|
||||
|
||||
%install
|
||||
# Install licenses
|
||||
mkdir -p licenses
|
||||
%meson_install
|
||||
|
||||
%files
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_datadir}/themes/Helium/*
|
||||
%{_datadir}/themes/Helium-dark/*
|
||||
|
||||
%changelog
|
||||
* Sun Nov 20 2022 Lleyton Gray <lleyton@fyralabs.com> - 1.0.1
|
||||
- Terra Release
|
||||
Reference in New Issue
Block a user