Package Details: hy3-git r209.65a849b-3

Git Clone URL: https://aur.archlinux.org/hy3-git.git (read-only, click to copy)
Package Base: hy3-git
Description: Hyprland plugin for i3 like tiling
Upstream URL: https://github.com/outfoxxed/hy3
Licenses: GPL3
Conflicts: hy3
Submitter: ju6ge
Maintainer: ju6ge
Last Packager: ju6ge
Votes: 0
Popularity: 0.000000
First Submitted: 2023-06-09 13:19 (UTC)
Last Updated: 2023-10-19 08:00 (UTC)

Latest Comments

ju6ge commented on 2023-10-19 08:01 (UTC)

I added a conflict statement for hy3.

outfoxxed commented on 2023-09-30 07:46 (UTC)

I packaged the stable version as hy3. I'm fairly sure that means this package should set provides/conflicts for it.

ju6ge commented on 2023-09-26 14:33 (UTC)

@mitch_mg2 this is an environment issue. You could set some environment variables to overwrite the default include paths of the hy3 build. But there is nothing to be done in the PKGBUILD here. The flags I am setting only have to do with where the resulting package will be installed, not where the sources are. If I where you I would read the hy3 cmake files.

mitch_mg2 commented on 2023-09-26 13:54 (UTC) (edited on 2023-09-26 13:55 (UTC) by mitch_mg2)

Not sure if I'm asking the right question here so please bear with me. I believe this is a CMAKE flag issue though.

Hyprland is always breaking and I frequently test experimental branches for patches. Therefore, I both have the AUR, as well as a locally built git clone Hyprland package in my system. When trying to install this package, it automatically defaults to my /usr/local/include directory to source its header files instead of hyprland-git's /usr/include directory. As a result, this build breaks due to an older manual build sitting around that hasn't been touched in weeks. Is this a way to modify the cmake line to prioritize /usr/include to be in concert with the hyprland-git package?

tuxx commented on 2023-07-19 22:50 (UTC) (edited on 2023-07-19 23:03 (UTC) by tuxx)

would it be possible to get this to compile to hyprland-nvidia? I've tried myself but i'm no package maintainer, so i failed.

I added the following to the hyprland-nvidia PKGBUILD:

+         find hyprland-source -name '*.hpp' -exec install -Dm0644 {} "$pkgdir/usr/include/hyprland/{}" \;
+         pushd hyprland-source/subprojects/wlroots/include
+         find . -name '*.h' -exec install -Dm0644 {} "$pkgdir/usr/include/hyprland/wlroots/{}" \;
+         popd
+         pushd hyprland-source/subprojects/wlroots/build/include
+         find . -name '*.h' -exec install -Dm0644 {} "$pkgdir/usr/include/hyprland/wlroots/{}" \;
+         popd
+         mkdir -p "$pkgdir/usr/include/hyprland/protocols"
+         cp hyprland-source/protocols/*-protocol.h "$pkgdir/usr/include/hyprland/protocols"
+         pushd hyprland-source/build
+         cmake -DCMAKE_INSTALL_PREFIX=/usr ..
+         popd
+         install -Dm0644 -t "$pkgdir/usr/share/pkgconfig" hyprland-source/build/hyprland.pc

to be perfectly clear, i noticed the folder inside /usr/include was wrong, so i symlinked it :o

# ln -s /usr/include/hyprland/hyprland-source/src /usr/include/hyprland/src

but i still get this error when trying to makepkg -si on hy3:

==> Making package: hy3-git r152.acf3c62-1 (Thu 20 Jul 2023 12:55:16 AM CEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating hy3 git repo...
==> Validating source files with sha256sums...
    hy3 ... Skipped
==> Extracting sources...
  -> Creating working copy of hy3 git repo...
Switched to a new branch 'makepkg'
==> Starting pkgver()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/tuxx/code/hy3-git/src/build
[ 14%] Building CXX object CMakeFiles/hy3.dir/src/main.cpp.o
In file included from /usr/include/c++/13.1.1/memory:78,
                 from /usr/include/hyprland/src/Compositor.hpp:3,
                 from /home/tuxx/code/hy3-git/src/hy3/src/main.cpp:3:
/usr/include/c++/13.1.1/bits/unique_ptr.h: In instantiation of ‘constexpr std::__detail::__unique_ptr_t<_Tp> std::make_unique(_Args&& ...) [with _Tp = Hy3Layout; _Args = {}; __detail::__unique_ptr_t<_Tp> = __detail::__unique_ptr_t<Hy3Layout>]’:
/home/tuxx/code/hy3-git/src/hy3/src/main.cpp:76:1:   required from here
/usr/include/c++/13.1.1/bits/unique_ptr.h:1070:30: error: invalid new-expression of abstract class type ‘Hy3Layout’
 1070 |     { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tuxx/code/hy3-git/src/hy3/src/globals.hpp:1,
                 from /home/tuxx/code/hy3-git/src/hy3/src/main.cpp:7:
/home/tuxx/code/hy3-git/src/hy3/src/Hy3Layout.hpp:47:7: note:   because the following virtual functions are pure within ‘Hy3Layout’:
   47 | class Hy3Layout: public IHyprLayout {
      |       ^~~~~~~~~
In file included from /usr/include/hyprland/src/managers/../layout/DwindleLayout.hpp:3,
                 from /usr/include/hyprland/src/managers/LayoutManager.hpp:3,
                 from /usr/include/hyprland/src/Compositor.hpp:14:
/usr/include/hyprland/src/managers/../layout/IHyprLayout.hpp:79:18: note:     ‘virtual void IHyprLayout::resizeActiveWindow(const Vector2D&, CWindow*)’
   79 |     virtual void resizeActiveWindow(const Vector2D&, CWindow* pWindow = nullptr) = 0;
      |                  ^~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/hy3.dir/build.make:76: CMakeFiles/hy3.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/hy3.dir/all] Error 2
make: *** [Makefile:136: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

any help, or suggestions would be greatly appreciated, since i would love to have hy3 in my hyprland desktop. <3

alerque commented on 2023-06-10 13:34 (UTC) (edited on 2023-06-10 13:34 (UTC) by alerque)

This is missing build dependencies. Try applying this using git am file.patch:

From e367a5c774e283cf34cd7330ab21d9e55577b69d Mon Sep 17 00:00:00 2001
From: Caleb Maclennan <caleb@alerque.com>
Date: Sat, 10 Jun 2023 16:32:07 +0300
Subject: [PATCH] Fix missing build dependencies

Signed-off-by: Caleb Maclennan <caleb@alerque.com>
---
 .SRCINFO | 5 ++++-
 PKGBUILD | 7 ++++---
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/.SRCINFO b/.SRCINFO
index ee70747..3fe6280 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,14 @@
 pkgbase = hy3-git
    pkgdesc = Hyprland plugin for i3 like tiling
    pkgver = r124.7c29490
-   pkgrel = 1
+   pkgrel = 2
    url = https://github.com/outfoxxed/hy3
    arch = x86_64
    license = GPL3
+   makedepends = cmake
    makedepends = git
+   depends = gcc-libs
+   depends = glibc
    depends = hyprland
    source = git+https://github.com/outfoxxed/hy3
    sha256sums = SKIP
diff --git a/PKGBUILD b/PKGBUILD
index 0c74543..05f363b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,14 +3,15 @@
 pkgname=hy3-git
 _pkgname=hy3
 pkgver=r124.7c29490
-pkgrel=1
+pkgrel=2
 pkgdesc='Hyprland plugin for i3 like tiling'
 arch=('x86_64')
 url='https://github.com/outfoxxed/hy3'
 license=('GPL3')
 makedepends=('git')
-depends=('hyprland')
-source=('git+https://github.com/outfoxxed/hy3')
+depends=('gcc-libs' 'glibc' 'hyprland')
+makedepends=('cmake' 'git')
+source=("git+$url")
 sha256sums=('SKIP')

 pkgver() {
-- 
2.41.0