Sorry for the github plug, but I've hosted a revised PKGBUILD in my own repo, use at your own risk. Here are the following changes:
Removed the options flags that almost certainly caused the LDFLAGS errors (Section 4.4 in the ArchWiki: https://wiki.archlinux.org/title/makepkg ). Outright copy pasted @eclairevoyant's pkgver line. Removed -j flag Build and Package functions almost entirely copied off official repo package. There was a few discrepancies with file permissions Inserted header files several plugins rely on (such as hy3) that do not exist in the -git PKGBUILD. Also off the official PKGBUILD. Added a quick "prepare" function. Could use some revision but seems to work for now. Changed arch to x86_64 and aaarch64.
Please let me know of any issues with my edited PKGBUILD. Again, use at your own risk, this is experimental. https://github.com/MitchMG2/HyprlandPKGBUILDCustom
Pinned Comments
zjeffer commented on 2024-07-17 16:50 (UTC) (edited on 2024-07-17 16:52 (UTC) by zjeffer)
Tips & tricks, common issues
using ccache/sccache
Precompiled headers (PCH) was enabled by default, this would most likely invalidate the compiler cache if any of the upstream header files change. To disable PCH, add the meson build option
-Db_pch=false
tobuild()
.Build with specific pull requests
Use
pick_mr <pull request number>
at the end ofprepare()
to merge pull requests locally. For example, to merge https://github.com/hyprwm/Hyprland/pull/6268, useEnable legacy renderer
In the
build()
function, add-D legacy_renderer=true
to meson setupCompilation errors
If you encounter compilation errors, try the following first:
protocols/
, such asprotocols/linux-dmabuf-v1.hpp
, then rebuild or installhyprwayland-scanner-git
;makepkg --cleanbuild
.Symbol not declared
Errors like
<symbol> was not declared in this scope
<symbol> has not been declared
are usually caused by missing headers. Please consider reporting this upstream or creating a pull request if it has not already been done.