[packages/hyprcursor] new
atler
atler at pld-linux.org
Mon Jul 29 02:24:17 CEST 2024
commit 399c598f89327465be1bcf97a4d95af99e2d1167
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Jul 29 00:29:44 2024 +0200
new
flags.patch | 10 +++++++++
hyprcursor.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 79 insertions(+)
---
diff --git a/hyprcursor.spec b/hyprcursor.spec
new file mode 100644
index 0000000..8995d92
--- /dev/null
+++ b/hyprcursor.spec
@@ -0,0 +1,69 @@
+Summary: The hyprland cursor format, library and utilities
+Name: hyprcursor
+Version: 0.1.9
+Release: 1
+License: BSD
+Group: Libraries
+#Source0Download: https://github.com/hyprwm/hyprcursor/releases
+Source0: https://github.com/hyprwm/hyprcursor/archive/v%{version}/%{name}-v%{version}.tar.gz
+# Source0-md5: cce0498650dac9d7590ff296e1a85ded
+Patch0: flags.patch
+URL: https://hyprland.org/
+BuildRequires: cairo-devel
+BuildRequires: cmake >= 3.19
+BuildRequires: hyprlang-devel >= 0.4.2
+BuildRequires: librsvg-devel >= 2
+BuildRequires: libstdc++-devel >= 6:11
+BuildRequires: libzip-devel
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.605
+BuildRequires: tomlplusplus-devel
+Requires: hyprlang >= 0.4.2
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Hyprutils is a small C++ library for utilities used across the Hypr*
+ecosystem.
+
+%package devel
+Summary: Header files for hyprcursor
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Header files for hyprcursor.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%cmake -B build
+
+%{__make} -C build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%attr(755,root,root) %{_bindir}/hyprcursor-util
+%attr(755,root,root) %{_libdir}/libhyprcursor.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libhyprcursor.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libhyprcursor.so
+%{_includedir}/hyprcursor
+%{_includedir}/hyprcursor.hpp
+%{_pkgconfigdir}/hyprcursor.pc
diff --git a/flags.patch b/flags.patch
new file mode 100644
index 0000000..3f53c36
--- /dev/null
+++ b/flags.patch
@@ -0,0 +1,10 @@
+--- hyprcursor-0.1.9/CMakeLists.txt.orig 2024-05-24 20:46:51.000000000 +0200
++++ hyprcursor-0.1.9/CMakeLists.txt 2024-07-28 18:16:55.870853997 +0200
+@@ -26,7 +26,6 @@
+ message(STATUS "Configuring hyprcursor in Debug")
+ add_compile_definitions(HYPRLAND_DEBUG)
+ else()
+- add_compile_options(-O3)
+ message(STATUS "Configuring hyprcursor in Release")
+ endif()
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/hyprcursor.git/commitdiff/399c598f89327465be1bcf97a4d95af99e2d1167
More information about the pld-cvs-commit
mailing list