pkgname=hyprland pkgver=0.50.1_git20250807 pkgrel=0 # IMPORTANT: _commit needs to be updated so that hyprctl / hyprpm function correctly. _commit="a4529beb7c0be3980ce857c60b284a90f2ea6eb6" pkgdesc="Independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks." url="https://hyprland.org" arch="all" license="BSD-3-Clause" source=" https://github.com/hyprwm/Hyprland/archive/a4529beb7c0be3980ce857c60b284a90f2ea6eb6.tar.gz " builddir="$srcdir/Hyprland-a4529beb7c0be3980ce857c60b284a90f2ea6eb6" makedepends=" aquamarine-dev>=0.9.0 cairo-dev cmake elogind-dev hyprcursor-dev>=0.1.9 hyprgraphics-dev>=0.1.5 hyprland-protocols>=0.6.0 hyprlang-dev>=0.3.2 hyprutils-dev>=0.8.0 hyprwayland-scanner>=0.3.10 jq libdrm-dev libinput-dev libliftoff-dev libxcb-dev libxcursor-dev libxkbcommon-dev mesa-dev meson ninja pango-dev pixman-dev re2-dev tomlplusplus-dev udis86-git-dev vulkan-loader-dev wayland-dev wayland-protocols xcb-util-errors-dev xcb-util-image-dev xcb-util-renderutil-dev xcb-util-wm-dev xkeyboard-config-dev xwayland-dev " subpackages=" $pkgname-doc $pkgname-dev $pkgname-wallpapers::noarch $pkgname-bash-completion $pkgname-fish-completion $pkgname-zsh-completion " # glaze required for hyprpm only supports little-endian case "$CARCH" in s390x) _disable_pm="-Dhyprpm=disabled" ;; *) subpackages="$subpackages $pkgname-plugin-manager:plugin_manager" makedepends="$makedepends glaze" ;; esac prepare() { default_prepare # Set some variables in version.h.in sed -i "s/@HASH@/$_commit/" "$builddir"/src/version.h.in sed -i "s/@BRANCH@/build-alpine/" "$builddir"/src/version.h.in _patches="$(printf %s "$source" | grep '.patch$' | tr '\n' ' ')" if test "$_patches"; then _message="with patches: $_patches" else _message="without patches" fi sed -i "s~@MESSAGE@~$_message~" "$builddir"/src/version.h.in sed -i "s/@TAG@/v$pkgver/" "$builddir"/src/version.h.in } build() { abuild-meson $_disable_pm . output meson compile -C output } check() { meson test -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } wallpapers() { pkgdesc="Wallpapers for Hyprland" amove usr/share/hypr/wall*.png } plugin_manager() { pkgdesc="Plugin-manager for Hyprland" depends=" $makedepends git " amove usr/bin/hyprpm } sha512sums=" 4552c2de1281d0cb7552c5ccd3547245af2baeceee3e0760acbf580db2480c549dd1122aad805cbb6329b1e85fb8a2086d1a05298608082d1ebf4a479b5bd104 a4529beb7c0be3980ce857c60b284a90f2ea6eb6.tar.gz "