Newer
Older
# Contributor: Clayton Craft <clayton@craftyguy.net>
# Maintainer: Clayton Craft <clayton@craftyguy.net>
pkgname=xdg-desktop-portal-cosmic
pkgver=1.0.0_alpha6
_upstreamver="${pkgver/_alpha/-alpha.}"
pkgdesc="xdg-desktop-portal implementation for the COSMIC Desktop Environment"
url="https://github.com/pop-os/xdg-desktop-portal-cosmic"
arch="aarch64 x86_64"
license="GPL-3.0-only"
depends="
cosmic-icons
xdg-desktop-portal
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
"
makedepends="
cargo
clang-libclang
findutils
glib-dev
gstreamer-dev
libxkbcommon-dev
mesa-dev
pipewire-dev
wayland-dev
xdg-desktop-portal-dev
"
options="net !check" # fetch dependencies, no tests
source="
$pkgname-$pkgver.tar.gz::https://github.com/pop-os/xdg-desktop-portal-cosmic/archive/refs/tags/epoch-$_upstreamver.tar.gz
fix-build-persistmode.patch
"
builddir="$srcdir/$pkgname-epoch-$_upstreamver"
prepare() {
default_prepare
cargo fetch --target="$CTARGET" --locked
}
build() {
make ARGS+=" --frozen --release"
}
check() {
cargo test --release --frozen
}
package() {
make prefix="/usr" DESTDIR="$pkgdir" install
}
sha512sums="
b2d52aaae4e8e24e3d9ab1750290e82ee8d94a6b71650da7c6d59433cb3d1c3a0ef8e833c43335abd887a785da432a240098a2e8402dc518b78ee3bfb8a22744 xdg-desktop-portal-cosmic-1.0.0_alpha6.tar.gz
481bd9803b81bdd157d3c196293f5eeea63e03733e7d0a6188e4ca57e98eff63278e2281de4f13e1f3e43ce43168de54cef58b22a35931fe7791a1a27eb7e938 fix-build-persistmode.patch
"