xdg-desktop-portal-generic

LOW
maintainer maci 0 votes scanned 2026-09-29 11:23:48.115840
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: Marcel W. Wysocki <maci.stgn@gmail.com>
2
3pkgname=xdg-desktop-portal-generic
4pkgver=0.9.0
5pkgrel=1
6pkgdesc='Generic XDG desktop portal backend for Wayland compositors (InputCapture, RemoteDesktop, ScreenCast, Clipboard)'
7arch=('x86_64')
8url='https://github.com/lamco-admin/xdg-desktop-portal-generic'
9license=('MIT' 'Apache-2.0')
10depends=('xdg-desktop-portal' 'pipewire' 'libxkbcommon' 'wayland')
11makedepends=('cargo' 'clang' 'pkgconf')
12source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz"
13 '0001-fix-input-capture-for-deskflow-on-wayland.patch')
14sha256sums=('a0764233f051bac8ce5ef7fb1824d2a32c46a356537bff89b06f5ed93c1c5341'
15 'b7eca6f2cffc82dd6b584a006d9ebc71e048853ddcc8e363cace2f0f5473a02f')
16
17prepare() {
18 cd "$pkgname-$pkgver"
19 patch -Np1 -i "../0001-fix-input-capture-for-deskflow-on-wayland.patch"
20 export RUSTUP_TOOLCHAIN=stable
21 cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
22}
23
24build() {
25 cd "$pkgname-$pkgver"
26 export RUSTUP_TOOLCHAIN=stable
27 export CARGO_TARGET_DIR=target
28 cargo build --release --frozen
29}
30
31package() {
32 cd "$pkgname-$pkgver"
33 install -Dm755 "target/release/$pkgname" "$pkgdir/usr/libexec/$pkgname"
34 install -Dm644 data/generic.portal "$pkgdir/usr/share/xdg-desktop-portal/portals/generic.portal"
35 install -Dm644 data/org.freedesktop.impl.portal.desktop.generic.service \
36 "$pkgdir/usr/share/dbus-1/services/org.freedesktop.impl.portal.desktop.generic.service"
37 install -Dm644 "data/$pkgname.service" "$pkgdir/usr/lib/systemd/user/$pkgname.service"
38 install -Dm644 LICENSE-MIT "$pkgdir/usr/share/licenses/$pkgname/LICENSE-MIT"
39 install -Dm644 LICENSE-APACHE "$pkgdir/usr/share/licenses/$pkgname/LICENSE-APACHE"
40}
41

Scan history

Scanned at (UTC)SeverityRules
2026-09-29 11:23:48 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion