From bb1e23e8de7684c587ff1448fbf87eb2cf5f0a1d Mon Sep 17 00:00:00 2001 From: gabry Date: Thu, 18 Dec 2025 16:47:13 +0100 Subject: [PATCH] hypr: add some plugins --- dynamic-cursors.recipe.py | 30 ++++++++++++++++++++++++++++++ hyprexpo.recipe.py | 30 ++++++++++++++++++++++++++++++ index.txt | 2 ++ 3 files changed, 62 insertions(+) create mode 100644 dynamic-cursors.recipe.py create mode 100644 hyprexpo.recipe.py diff --git a/dynamic-cursors.recipe.py b/dynamic-cursors.recipe.py new file mode 100644 index 0000000..cbd5633 --- /dev/null +++ b/dynamic-cursors.recipe.py @@ -0,0 +1,30 @@ +pkgname = "dynamic-cursors" +pkgver = "0.52.0" +source = f"https://github.com/VirtCode/hypr-dynamic-cursors.git" +source_type = "git" +builddir = f"/tmp/fempkgbuild/hypr-dynamic-cursors" +fembuilddir = builddir +outputdir = "/home/gabry/lfs-repo/binpkg" +manifestdir = "/home/gabry/lfs-repo/manifests" +destdir = f"{fembuilddir}/DESTDIR" + +deps = ["hyprland"] + +build = [ + + # 64-bit build + f"cd {builddir} && git checkout 8c1679b87c54e97145cae83e622956d720e88bef", + f"su gabry -c 'XDG_RUNTIME_DIR=/run/user/$EUID hyprpm update || true'", + f"cd {builddir} && make -j$(nproc)", + f"cd {builddir} && install -v -d -m755 {destdir}/usr/share/hypr/plugins && install -v -m775 out/dynamic-cursors.so {destdir}/usr/share/hypr/plugins/", + + f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/", + f"install -v -m644 {builddir}/LICENSE.md {destdir}/usr/share/licenses/{pkgname}/LICENSE", + + # Make tarball + manifests + f"mkdir -p {outputdir} && cd {destdir} && tar --transform 's|^\\.||' -I zstd -cf {outputdir}/{pkgname}-{pkgver}.tar.zst .", + f"mkdir -p {manifestdir} && tar -tf {outputdir}/{pkgname}-{pkgver}.tar.zst | grep -v '/$' > {manifestdir}/{pkgname}.txt", + + # Cleanup + f"rm -rf {fembuilddir}" +] diff --git a/hyprexpo.recipe.py b/hyprexpo.recipe.py new file mode 100644 index 0000000..66fa751 --- /dev/null +++ b/hyprexpo.recipe.py @@ -0,0 +1,30 @@ +pkgname = "hyprexpo" +pkgver = "0.52.0" +source = f"https://github.com/hyprwm/hyprland-plugins.git" +source_type = "git" +builddir = f"/tmp/fempkgbuild/hyprland-plugins" +fembuilddir = builddir +outputdir = "/home/gabry/lfs-repo/binpkg" +manifestdir = "/home/gabry/lfs-repo/manifests" +destdir = f"{fembuilddir}/DESTDIR" + +deps = ["hyprland"] + +build = [ + + # 64-bit build + f"cd {builddir} && git checkout 8c1212e96b81aa5f11fe21ca27defa2aad5b3cf3", + f"su gabry -c 'XDG_RUNTIME_DIR=/run/user/$EUID hyprpm update || true'", + f"cd {builddir}/hyprexpo && make -j$(nproc)", + f"cd {builddir}/hyprexpo && install -v -d -m755 {destdir}/usr/share/hypr/plugins && install -v -m775 hyprexpo.so {destdir}/usr/share/hypr/plugins/", + + f"install -v -d -m755 {destdir}/usr/share/licenses/{pkgname}/", + f"install -v -m644 {builddir}/LICENSE {destdir}/usr/share/licenses/{pkgname}/LICENSE", + + # Make tarball + manifests + f"mkdir -p {outputdir} && cd {destdir} && tar --transform 's|^\\.||' -I zstd -cf {outputdir}/{pkgname}-{pkgver}.tar.zst .", + f"mkdir -p {manifestdir} && tar -tf {outputdir}/{pkgname}-{pkgver}.tar.zst | grep -v '/$' > {manifestdir}/{pkgname}.txt", + + # Cleanup + f"rm -rf {fembuilddir}" +] diff --git a/index.txt b/index.txt index 406ac59..ec199c3 100644 --- a/index.txt +++ b/index.txt @@ -55,6 +55,7 @@ doxygen.recipe.py dracut.recipe.py duktape.recipe.py dvd+rw-tools.recipe.py +dynamic-cursors.recipe.py e2fsprogs.recipe.py efibootmgr.recipe.py efivar.recipe.py @@ -131,6 +132,7 @@ harfbuzz.recipe.py hicolor-icon-theme.recipe.py highway.recipe.py hwdata.recipe.py +hyprexpo.recipe.py hyprland-libs.recipe.py hyprland.recipe.py hyprpicker.recipe.py