diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-09-12 19:34:31 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-09-12 19:34:31 +0800 |
| commit | 5c3bbdf29e46a90783eecfaa76ddb6cfd519768b (patch) | |
| tree | 17b7ca3dba5327fa76c1b3e5ba8dc5c2a4458df2 /pkgbuilds/hyprland-git | |
| parent | fb1d067b486d5cce72b7d96b030e9f7af006cc3b (diff) | |
new: hyprland input capture
Diffstat (limited to 'pkgbuilds/hyprland-git')
| -rw-r--r-- | pkgbuilds/hyprland-git/PKGBUILD | 132 |
1 files changed, 132 insertions, 0 deletions
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 <blaskoazzolaaaron@gmail.com> +# Contributor: ThatOneCalculator <kainoa at t1c dot dev> + +_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" +} |
