mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(cherry picked from commit f197676162)
Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
project pkg {
|
||||
arches = ["x86_64"]
|
||||
rpm {
|
||||
spec = "hyprland-protocols.nightly.spec"
|
||||
}
|
||||
labels {
|
||||
nightly = 1
|
||||
subrepo = "extras"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
#? https://src.fedoraproject.org/rpms/hyprland-protocols/blob/rawhide/f/hyprland-protocols.spec
|
||||
|
||||
%global realname hyprland-protocols
|
||||
%global ver 0.6.4
|
||||
%global commit 613878cb6f459c5e323aaafe1e6f388ac8a36330
|
||||
%global commit_date 20250604
|
||||
%global shortcommit %{sub %commit 1 7}
|
||||
|
||||
Name: %realname.nightly
|
||||
Version: %ver^%{commit_date}git.%shortcommit
|
||||
Release: 1%?dist
|
||||
Summary: Wayland protocol extensions for Hyprland
|
||||
BuildArch: noarch
|
||||
|
||||
License: BSD-3-Clause
|
||||
URL: https://github.com/hyprwm/hyprland-protocols
|
||||
Source0: %url/archive/%commit.tar.gz
|
||||
|
||||
BuildRequires: meson
|
||||
Packager: madonuko <mado@fyralabs.com>
|
||||
Provides: %realname = %evr
|
||||
Conflicts: %realname
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: Wayland protocol extensions for Hyprland
|
||||
Provides: %realname-devel = %evr
|
||||
Conflicts: %realname-devel
|
||||
|
||||
%description devel
|
||||
%{summary}.
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %realname-%commit
|
||||
|
||||
|
||||
%build
|
||||
%meson
|
||||
%meson_build
|
||||
|
||||
|
||||
%install
|
||||
%meson_install
|
||||
|
||||
|
||||
%files devel
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_datadir}/pkgconfig/%{realname}.pc
|
||||
%{_datadir}/%{realname}/
|
||||
@@ -0,0 +1,5 @@
|
||||
rpm.global("commit", gh_commit("hyprwm/hyprlang-protocols"));
|
||||
if rpm.changed() {
|
||||
rpm.global("ver", gh_rawfile("hyprwm/hyprlang-protocols", "main", "VERSION"));
|
||||
rpm.global("commit_date", date());
|
||||
}
|
||||
Reference in New Issue
Block a user