From 5c3bbdf29e46a90783eecfaa76ddb6cfd519768b Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Fri, 12 Sep 2025 19:34:31 +0800 Subject: new: hyprland input capture --- pkgbuilds/hyprland-git/PKGBUILD | 132 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 pkgbuilds/hyprland-git/PKGBUILD (limited to 'pkgbuilds/hyprland-git') diff --git a/pkgbuilds/hyprland-git/PKGBUILD b/pkgbuilds/hyprland-git/PKGBUILD new file mode 100644 index 00000000..d805413f --- /dev/null +++ b/pkgbuilds/hyprland-git/PKGBUILD @@ -0,0 +1,132 @@ +# Maintainer: FabioLolix +# Maintainer: éclairevoyant +# Maintainer: alba4k +# Contributor: ThatOneCalculator + +_pkgname="hyprland" +pkgname="$_pkgname-git" +pkgver=0.51.0.r28.g1754afb +pkgrel=1 +pkgdesc="Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks" +arch=('x86_64' 'aarch64') +url="https://github.com/hyprwm/Hyprland" +license=('BSD-3-Clause') + +depends=( + aquamarine-git + cairo + gcc-libs + glib2 + glibc + glslang + hyprcursor-git + hyprgraphics-git + hyprland-qtutils-git + hyprlang-git + hyprutils-git + libdisplay-info + libdrm + libglvnd + libinput + libliftoff + libx11 + libxcb + libxcomposite + libxcursor + libxfixes + libxkbcommon + libxrender + mesa + opengl-driver + pango + pixman + polkit + re2 + seatd + systemd-libs + tomlplusplus + util-linux-libs + wayland + wayland-protocols + xcb-proto + xcb-util + xcb-util-errors + xcb-util-image + xcb-util-keysyms + xcb-util-renderutil + xcb-util-wm + xorg-xwayland +) +makedepends=( + cmake + git + glaze + hyprland-protocols-git + hyprwayland-scanner-git + ninja + #patch + #pkgconf + python # required by udis86 + xorgproto +) +optdepends=( + 'cmake: to build and install plugins using hyprpm' + 'cpio: to build and install plugins using hyprpm' + 'meson: to build and install plugins using hyprpm' + 'glaze: to build and install plugins using hyprpm' + 'uwsm: the recommended way to start Hyprland' +) + +conflicts=("$_pkgname") +provides=("$_pkgname=${pkgver%%.r*}" "wayland-compositor") + +_pkgsrc=$_pkgname +source=( + "$_pkgsrc::git+$url.git" + "udis86::git+https://github.com/canihavesomecoffee/udis86.git" +) +sha256sums=( + 'SKIP' + 'SKIP' +) + +backup=("usr/share/xdg-desktop-portal/hyprland-portals.conf") + +prepare() { + cd "$_pkgsrc" + git remote add fork https://github.com/3l0w/Hyprland.git + git pull fork feat/input-capture-impl + git submodule init + echo anb + git config submodule.subprojects/udis86.url "${srcdir}/udis86" + git config submodule.subprojects/tracy.update none + git -c protocol.file.allow=always submodule update + + if [[ -z "$(git config --get user.name)" ]]; then + git config user.name local && git config user.email '<>' && git config commit.gpgsign false + fi +} + +pkgver() { + cd "$_pkgsrc" + git describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + local cmake_options=( + -B build + -S "$_pkgsrc" + -G Ninja + -W no-dev + -D CMAKE_BUILD_TYPE=None + -D CMAKE_INSTALL_PREFIX=/usr + ) + cmake "${cmake_options[@]}" + cmake --build build +} + +package() { + DESTDIR="$pkgdir" cmake --install build + install -Dm0644 "$_pkgsrc/LICENSE" -t "$pkgdir/usr/share/licenses/${pkgname}/" + install -Dm0644 "$_pkgsrc/subprojects/udis86/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE-udis86" +} -- cgit v1.2.3