Date: Tuesday, April 4, 2023 @ 11:22:56
Author: alerque
Revision: 1434513
archrelease: copy trunk to community-x86_64
Added:
hyprland/repos/community-x86_64/
hyprland/repos/community-x86_64/PKGBUILD
(from rev 1434512, hyprland/trunk/PKGBUILD)
----------+
PKGBUILD | 89 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 89 insertions(+)
Copied: hyprland/repos/community-x86_64/PKGBUILD (from rev 1434512,
hyprland/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD (rev 0)
+++ community-x86_64/PKGBUILD 2023-04-04 11:22:56 UTC (rev 1434513)
@@ -0,0 +1,89 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: ThatOneCalculator <[email protected]>
+
+pkgname=hyprland
+pkgver=0.23.0beta
+pkgrel=3
+pkgdesc='a highly customizable dynamic tiling Wayland compositor'
+arch=(x86_64 aarch64)
+url="https://github.com/hyprwm/${pkgname^}"
+license=(BSD)
+depends=(cairo
+ gcc-libs
+ glibc
+ glslang
+ libdisplay-info
+ libdrm
+ libglvnd
+ libinput
+ libliftoff
+ libx11
+ libxcb
+ libxcomposite
+ libxfixes
+ libxkbcommon
+ libxrender
+ opengl-driver
+ pango
+ pixman
+ pixman
+ polkit
+ seatd
+ systemd-libs
+ vulkan-icd-loader
+ vulkan-validation-layers
+ wayland
+ wayland-protocols
+ xcb-proto
+ xcb-util
+ xcb-util-errors
+ xcb-util-keysyms
+ xcb-util-renderutil
+ xcb-util-wm
+ xorg-xinput
+ xorg-xwayland)
+makedepends=(cmake
+ gdb
+ meson
+ ninja
+ vulkan-headers
+ xorgproto)
+_archive="${pkgname^}-$pkgver"
+source=("$_archive.tar.gz::$url/releases/download/v$pkgver/source-v$pkgver.tar.gz")
+sha256sums=('779c35b0256cffe681586e4c34d63cf46fe4f263eff5370d06ae77a96e5de01f')
+
+prepare() {
+ ln -sf hyprland-source "$_archive"
+ cd "$_archive"
+ make fixwlr
+ sed -i -e '/^release:/{n;s/-D/-DCMAKE_SKIP_RPATH=ON -D/}' Makefile
+}
+
+build() {
+ cd "$_archive"
+ pushd subprojects/wlroots
+ meson build/ --prefix="$srcdir/tmpwlr" --buildtype=release
+ ninja -C build/
+ mkdir -p "$srcdir/tmpwlr"
+ ninja -C build/ install
+ popd
+ pushd subprojects/udis86
+ cmake --no-warn-unused-cli -DCMAKE_BUILD_TYPE:STRING=Release -H./
-B./build -G Ninja
+ cmake --build ./build --config Release --target all
+ popd
+ make protocols
+ make release
+ pushd hyprctl
+ make all
+}
+
+package() {
+ cd "$_archive"
+ install -Dm0755 -t "$pkgdir/usr/bin" build/Hyprland
+ install -Dm0755 -t "$pkgdir/usr/bin" hyprctl/hyprctl
+ install -Dm0644 -t "$pkgdir/usr/share/$pkgname" assets/*.png
+ install -Dm0644 -t "$pkgdir/usr/share/wayland-sessions"
"example/$pkgname.desktop"
+ install -Dm0644 -t "$pkgdir/usr/share/$pkgname" "example/$pkgname.conf"
+ install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+ install -Dm0755 -t "$pkgdir/usr/lib"
"$srcdir/tmpwlr/lib/libwlroots.so.12032"
+}