mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(cherry picked from commit d4bf30d327)
Co-authored-by: sadlerm4 <sad_lerm@hotmail.com>
This commit is contained in:
@@ -1,10 +1,17 @@
|
||||
%global commit d5fff0dd5bfb8bda19b050f66610d19370c5fd39
|
||||
%global commit_date 20241019
|
||||
%global shortcommit %{sub %{commit} 1 7}
|
||||
|
||||
Name: blackbox-terminal
|
||||
Version: 0.14.0
|
||||
Version: 0.14.0^%{commit_date}.%{shortcommit}
|
||||
Release: 1%{?dist}
|
||||
Summary: A beautiful GTK 4 terminal
|
||||
|
||||
License: GPL-3.0
|
||||
URL: https://gitlab.gnome.org/raggesilver/blackbox
|
||||
BuildRequires: vala meson gettext
|
||||
Source0: %{url}/-/archive/%{commit}/blackbox-%{commit}.tar.gz
|
||||
|
||||
BuildRequires: vala meson gettext
|
||||
BuildRequires: pkgconfig(gtk4) >= 4.6.2
|
||||
BuildRequires: pkgconfig(gio-2.0) >= 2.50
|
||||
BuildRequires: libadwaita-devel >= 1.1
|
||||
@@ -17,13 +24,12 @@ BuildRequires: pkgconfig(libpcre2-8)
|
||||
BuildRequires: pkgconfig(graphene-gobject-1.0)
|
||||
BuildRequires: pkgconfig(gee-0.8)
|
||||
BuildRequires: desktop-file-utils libappstream-glib cmake
|
||||
Source0: %url/-/archive/v%version/blackbox-v%version.tar.gz
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
An elegant and customizable terminal for GNOME.
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n blackbox-v%version
|
||||
%autosetup -n blackbox-%{commit}
|
||||
|
||||
%build
|
||||
%meson
|
||||
@@ -33,7 +39,7 @@ Source0: %url/-/archive/v%version/blackbox-v%version.tar.gz
|
||||
%meson_install
|
||||
|
||||
%check
|
||||
appstream-util validate-relax --nonet %buildroot/%_datadir/metainfo/com.raggesilver.BlackBox.metainfo.xml
|
||||
appstream-util validate-relax --nonet %buildroot%_datadir/metainfo/com.raggesilver.BlackBox.metainfo.xml
|
||||
|
||||
%files
|
||||
%doc README.md
|
||||
@@ -52,7 +58,6 @@ appstream-util validate-relax --nonet %buildroot/%_datadir/metainfo/com.raggesil
|
||||
%_datadir/locale/*/LC_MESSAGES/blackbox.mo
|
||||
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Oct 23 2022 windowsboy111 <windowsboy111@fyralabs.com>
|
||||
- Initial package
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
let txt = get("https://gitlab.gnome.org/api/v4/projects/20397/releases/");
|
||||
let ver = txt.json_arr()[0].tag_name;
|
||||
ver.crop(1);
|
||||
rpm.version(ver);
|
||||
rpm.global("commit", gitlab_commit("gitlab.gnome.org", "20397", "main"));
|
||||
if rpm.changed {
|
||||
rpm.global("commit_date", date());
|
||||
rpm.release();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user