[packages/hyprlang] new
atler
atler at pld-linux.org
Mon Jul 29 02:18:42 CEST 2024
commit 90de32bc9e45be1c51dfc9409f90f95a9ec9e3b7
Author: Jan Palus <atler at pld-linux.org>
Date: Mon Jul 29 00:23:57 2024 +0200
new
flags.patch | 10 ++++++++++
hyprlang.spec | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 72 insertions(+)
---
diff --git a/hyprlang.spec b/hyprlang.spec
new file mode 100644
index 0000000..70c049d
--- /dev/null
+++ b/hyprlang.spec
@@ -0,0 +1,62 @@
+Summary: The official implementation library for the hypr config language
+Name: hyprlang
+Version: 0.5.2
+Release: 1
+License: LGPL v3
+Group: Libraries
+#Source0Download: https://github.com/hyprwm/hyprlang/releases
+Source0: https://github.com/hyprwm/hyprlang/archive/v%{version}/%{name}-v%{version}.tar.gz
+# Source0-md5: e73e0ec151a0d2d3623baccb49566e0a
+Patch0: flags.patch
+URL: https://hyprland.org/
+BuildRequires: cmake >= 3.19
+BuildRequires: libstdc++-devel >= 6:11
+BuildRequires: rpmbuild(macros) >= 1.605
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The hypr configuration language is an extremely efficient, yet easy to
+work with, configuration language for linux applications.
+
+It's user-friendly, easy to grasp, and easy to implement.
+
+%package devel
+Summary: Header files for hyprlang
+Group: Development/Libraries
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+Header files for hyprlang.
+
+%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 README.md
+%attr(755,root,root) %{_libdir}/libhyprlang.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libhyprlang.so.2
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libhyprlang.so
+%{_includedir}/hyprlang.hpp
+%{_pkgconfigdir}/hyprlang.pc
diff --git a/flags.patch b/flags.patch
new file mode 100644
index 0000000..4f341b6
--- /dev/null
+++ b/flags.patch
@@ -0,0 +1,10 @@
+--- hyprlang-0.5.2/CMakeLists.txt.orig 2024-05-23 12:00:09.000000000 +0200
++++ hyprlang-0.5.2/CMakeLists.txt 2024-07-28 17:51:17.288577141 +0200
+@@ -20,7 +20,6 @@
+ message(STATUS "Configuring hyprlang in Debug")
+ add_compile_definitions(HYPRLAND_DEBUG)
+ else()
+- add_compile_options(-O3)
+ message(STATUS "Configuring hyprlang in Release")
+ endif()
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/hyprlang.git/commitdiff/90de32bc9e45be1c51dfc9409f90f95a9ec9e3b7
More information about the pld-cvs-commit
mailing list