# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=apk-polkit-rs pkgver=2.0.0 _gitlabsha=dd883dbad280bb99050f013ed1902dd3 pkgrel=0 pkgdesc="apk-polkit-rs exposes a DBus API for APK, the Alpine Package Keeper" url="https://gitlab.alpinelinux.org/Cogitri/apk-polkit-rs" arch="x86_64 armv7 armhf aarch64 x86 ppc64le" license="GPL-3.0-or-later" depends="polkit" makedepends="meson cargo polkit-dev glib-dev clang-dev apk-tools-dev" checkdepends="appstream bash" subpackages="$pkgname-dev $pkgname-dbg $pkgname-lang" source="https://gitlab.alpinelinux.org/Cogitri/apk-polkit-rs/uploads/$_gitlabsha/apk-polkit-rs-$pkgver.tar.xz" prepare() { default_prepare sed '/CBUILD/d' -i meson.build cargo fetch --locked } build() { abuild-meson . output meson compile ${JOBS:+-j ${JOBS}} -C output } check() { meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } sha512sums=" 2fbe255402f7cc8850e38bd523ba627b7735ddd0927ec781251d7d79ab1f77eb8a2840bb4747bc54c3a2dc05f7bf80923c321147708fbe463a71f23bb22deba4 apk-polkit-rs-2.0.0.tar.xz "