Date: Saturday, April 8, 2023 @ 13:53:20
  Author: alerque
Revision: 1442557

archrelease: copy trunk to community-x86_64

Added:
  xdg-desktop-portal-hyprland/repos/community-x86_64/
  xdg-desktop-portal-hyprland/repos/community-x86_64/PKGBUILD
    (from rev 1442556, xdg-desktop-portal-hyprland/trunk/PKGBUILD)

----------+
 PKGBUILD |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

Copied: xdg-desktop-portal-hyprland/repos/community-x86_64/PKGBUILD (from rev 
1442556, xdg-desktop-portal-hyprland/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD                           (rev 0)
+++ community-x86_64/PKGBUILD   2023-04-08 13:53:20 UTC (rev 1442557)
@@ -0,0 +1,48 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+
+pkgname=xdg-desktop-portal-hyprland
+pkgver=0.1.0
+_protocolver=b8f55e02a328c47ed373133c52483bbfa20a1b75
+pkgrel=1
+pkgdesc='xdg-desktop-portal backend for hyprland'
+url="https://github.com/hyprwm/$pkgname";
+arch=(x86_64)
+license=(MIT)
+provides=(xdg-desktop-portal-impl)
+depends=(libinih
+         pipewire
+         qt6-base
+         qt6-wayland
+         xdg-desktop-portal)
+makedepends=(cmake
+             meson
+             scdoc
+             wayland
+             wayland-protocols)
+optdepends=('grim: required for the screenshot portal to function'
+            'slurp: support for interactive mode for the screenshot portal')
+_archive="$pkgname-$pkgver"
+source=("$url/archive/v$pkgver/v$pkgver.tar.gz"
+        
"https://github.com/hyprwm/hyprland-protocols/archive/$_protocolver.tar.gz";)
+sha256sums=('43b40bfaf94c01706759202a770b13f07469f4a8aef2cc14d4b2d2a758582edf'
+            '5340ca9a11bfc1a839b5acb23a3c93739cf6d82708e975330b687b0f1bd763f1')
+
+prepare() {
+    cd "$_archive/subprojects"
+    rm -rf hyprland-protocols
+    ln -sfT "$srcdir/hyprland-protocols-$_protocolver" hyprland-protocols
+}
+
+build() {
+    cd "$_archive"
+    arch-meson -Dsd-bus-provider=libsystemd build
+    ninja -C build
+    make -C hyprland-share-picker all
+}
+
+package() {
+    cd "$_archive"
+    DESTDIR="$pkgdir" ninja -C build install
+    install -Dm0755 -t "$pkgdir/usr/bin/" 
hyprland-share-picker/build/hyprland-share-picker
+    install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}

Reply via email to