From cb0e3baadad117f8a9bd4b6db5a2f968ae0e10fe Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 16 Jan 2025 08:38:53 -0800 Subject: [PATCH] feat(ghostty): adhere closer to packaging guidelines (#3021) (#3022) Signed-off-by: Gil (cherry picked from commit d034825c22fec4ae48806ec677b104910a0a3414) Co-authored-by: Gil --- anda/devs/ghostty/nightly/ghostty-nightly.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/anda/devs/ghostty/nightly/ghostty-nightly.spec b/anda/devs/ghostty/nightly/ghostty-nightly.spec index 9174493f01..b86b748f7d 100644 --- a/anda/devs/ghostty/nightly/ghostty-nightly.spec +++ b/anda/devs/ghostty/nightly/ghostty-nightly.spec @@ -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