Skip to content

Commit

Permalink
Hypr: Added a few packages to satisfy Hyprland dependency. Fixes #34.
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeckmathederg committed Jan 29, 2025
1 parent 3fb4a91 commit 6c97469
Show file tree
Hide file tree
Showing 8 changed files with 392 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hypr/glaze.xml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ ninja</userinput></screen>
None
</seg>
<seg>
/usr/include/glaze
/usr/include/glaze and /usr/share/glaze
</seg>
</seglistitem>
</segmentedlist>
Expand Down
3 changes: 3 additions & 0 deletions hypr/hypr.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="aquamarine.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libliftoff.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="glaze.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="libspng.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="hyprgraphics.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="re2.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="hyprland.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sdbus-cpp.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="xdg-desktop-portal-hyprland.xml"/>
Expand Down
128 changes: 128 additions & 0 deletions hypr/hyprgraphics.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities;

<!ENTITY hyprgraphics-download-http "https://github.com/hyprwm/hyprgraphics/archive/refs/tags/v&hyprgraphics-version;.tar.gz">
]>

<sect1 id="hyprgraphics" xreflabel="hyprgraphics-&hyprgraphics-version;">
<?dbhtml filename="hyprgraphics.html"?>


<title>hyprgraphics-&hyprgraphics-version;</title>

<indexterm zone="hyprgraphics">
<primary sortas="a-hyprgraphics">hyprgraphics</primary>
</indexterm>

<sect2 role="package">
<title>Introduction to hyprgraphics</title>

<para>
The hyprgraphics package provides graphics utilities for the Hypr
ecosystem.
</para>

<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&hyprgraphics-download-http;"/>
</para>
</listitem>
</itemizedlist>

<bridgehead renderas="sect3">hyprgraphics Dependencies</bridgehead>

<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<ulink url="&blfs-svn;/x/cairo.html">Cairo</ulink>,
<ulink url="&blfs-svn;/general/cmake.html">CMake</ulink>,
<xref linkend="hyprutils"/>,
<ulink url="&blfs-svn;/general/libjxl.html">libjxl</ulink>,
<xref linkend="libspng"/>,
<ulink url="&blfs-svn;/general/libwebp.html">libwebp</ulink>, and
<ulink url="&blfs-svn;/general/pixman.html">Pixman</ulink>
</para>

</sect2>

<sect2 role="installation">
<title>Installation of hyprgraphics</title>

<para>
Install <application>hyprgraphics</application> by running the following
commands:
</para>

<screen><userinput>mkdir build &amp;&amp;
cd build &amp;&amp;

cmake -D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_SKIP_INSTALL_RPATH=ON \
-G Ninja .. &amp;&amp;

ninja</userinput></screen>

<para>
Now, as the &root; user:
</para>

<screen role="root"><userinput>ninja install</userinput></screen>

</sect2>

<sect2 role="commands">
<title>Command Explanations</title>

<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../xincludes/cmake-skip-install-rpath.xml"/>

</sect2>

<sect2 role="content">
<title>Contents</title>

<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>

<seglistitem>
<seg>
None
</seg>
<seg>
libhyprgraphics.so
</seg>
<seg>
/usr/include/hyprgraphics
</seg>
</seglistitem>
</segmentedlist>

<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>

<varlistentry id="libhyprgraphics">
<term><filename class="libraryfile">libhyprgraphics.so</filename></term>
<listitem>
<para>
provides graphics utility functions for the Hypr ecosystem
</para>
<indexterm zone="hyprgraphics libhyprgraphics">
<primary sortas="c-libhyprgraphics">libhyprgraphics.so</primary>
</indexterm>
</listitem>
</varlistentry>

</variablelist>

</sect2>

</sect1>
5 changes: 5 additions & 0 deletions hypr/hyprland.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
written in C++.
</para>

<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../xincludes/long-build-time.xml"/>

<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
Expand All @@ -49,6 +52,7 @@
<ulink url="&blfs-svn;/general/glib2.html">GLib2</ulink>,
<ulink url="&blfs-svn;/x/glslang.html">Glslang</ulink>,
<xref linkend="hyprcursor"/>,
<xref linkend="hyprgraphics"/>,
<xref linkend="hyprlang"/>,
<xref linkend="hyprutils"/>,
<xref linkend="hyprwayland-scanner"/>,
Expand All @@ -62,6 +66,7 @@
(only the normal installation is required)),
<ulink url="&blfs-svn;/x/pango.html">Pango</ulink> (with Cairo),
<ulink url="&blfs-svn;/general/pixman.html">Pixman</ulink>,
<xref linkend="re2"/>,
<ulink url="https://glfs-book.github.io/glfs/shareddeps/seatd.html">seatd</ulink><phrase
revision="sysv">,</phrase>
<phrase revision="systemd">(the recommended dependency, elogind, is not
Expand Down
122 changes: 122 additions & 0 deletions hypr/libspng.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../general.ent">
%general-entities;

<!ENTITY libspng-download-http "https://github.com/randy408/libspng/archive/v&libspng-version;.tar.gz">
]>

<sect1 id="libspng" xreflabel="libspng-&libspng-version;">
<?dbhtml filename="libspng.html"?>


<title>libspng-&libspng-version;</title>

<indexterm zone="libspng">
<primary sortas="a-libspng">libspng</primary>
</indexterm>

<sect2 role="package">
<title>Introduction to libspng</title>

<para>
The <application>libspng</application> package provides a C library for
handling PNG files.
</para>

<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&libspng-download-http;"/>
</para>
</listitem>
</itemizedlist>

<bridgehead renderas="sect3">libspng Dependencies</bridgehead>

<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<ulink url="&blfs-svn;/general/cmake.html">CMake</ulink>
</para>

</sect2>

<sect2 role="installation">
<title>Installation of libspng</title>

<para>
Install <application>libspng</application> by running the following
commands:
</para>

<screen><userinput>mkdir build &amp;&amp;
cd build &amp;&amp;

cmake -D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_SKIP_INSTALL_RPATH=ON \
-G Ninja .. &amp;&amp;

ninja</userinput></screen>

<para>
Now, as the &root; user:
</para>

<screen role="root"><userinput>ninja install</userinput></screen>

</sect2>

<sect2 role="commands">
<title>Command Explanations</title>

<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../xincludes/cmake-skip-install-rpath.xml"/>

</sect2>

<sect2 role="content">
<title>Contents</title>

<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directories</segtitle>

<seglistitem>
<seg>
None
</seg>
<seg>
libspng.so and libspng_static.a (static version of libspng.so)
</seg>
<seg>
/usr/lib/cmake/libspng
</seg>
</seglistitem>
</segmentedlist>

<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>

<varlistentry id="libspng-lib">
<term><filename class="libraryfile">libspng.so</filename></term>
<listitem>
<para>
provides functions that can help with handling PNG files
</para>
<indexterm zone="libspng libspng-lib">
<primary sortas="c-libspng-lib">libspng.so</primary>
</indexterm>
</listitem>
</varlistentry>

</variablelist>

</sect2>

</sect1>
Loading

0 comments on commit 6c97469

Please sign in to comment.