aports/testing/xdg-desktop-portal-cosmic/APKBUILD
2025-03-12 12:14:56 +00:00

54 lines
1.4 KiB
Text

# 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.}"
pkgrel=1
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
"
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
"