feat(ghostty): adhere closer to packaging guidelines (#3021) (#3022)

Signed-off-by: Gil <rockgrub@protonmail.com>
(cherry picked from commit d034825c22)

Co-authored-by: Gil <rockgrub@protonmail.com>
This commit is contained in:
Raboneko
2025-01-16 08:38:53 -08:00
committed by GitHub
parent 17b1dfadf3
commit cb0e3baada
@@ -1,18 +1,20 @@
%global commit ff9414d9ea7b16a375d41cde8f6f193de7e5db72
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 20250116
%global public_key RWQlAjJC23149WL2sEpT/l0QKy7hMIFhYdQOFy0Z7z7PbneUgvlsnYcV
%global cache_dir %{builddir}/zig-cache
Name: ghostty-nightly
Version: %{commit_date}.%{shortcommit}
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A fast, native terminal emulator written in Zig; this is the Tip (nightly) build.
License: MIT AND MPL-2.0 AND OFL-1.1 AND (WTFPL OR CC0-1.0) AND Apache-2.0
URL: https://ghostty.org/
Source0: https://github.com/ghostty-org/ghostty/archive/%{commit}/ghostty-%{commit}.tar.gz
Source0: https://github.com/ghostty-org/ghostty/releases/download/tip/ghostty-source.tar.gz
Source1: https://github.com/ghostty-org/ghostty/releases/download/tip/ghostty-source.tar.gz.minisig
BuildRequires: gtk4-devel
BuildRequires: libadwaita-devel
BuildRequires: minisign
BuildRequires: ncurses
BuildRequires: ncurses-devel
BuildRequires: pandoc-cli
@@ -76,7 +78,8 @@ Supplements: %{name}
%summary.
%prep
%autosetup -n ghostty-%{commit} -p1
/usr/bin/minisign -V -m %{SOURCE0} -x %{SOURCE1} -P %{public_key}
%autosetup -n ghostty-source
# Download everything ahead of time so we can enable system integration mode
ZIG_GLOBAL_CACHE_DIR="%{cache_dir}" ./nix/build-support/fetch-zig-cache.sh