aboutsummaryrefslogtreecommitdiffstats
path: root/community/apk-polkit-rs/APKBUILD
blob: 139babae720c2504726d4ad1c935b7400ceb6674 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=apk-polkit-rs
pkgver=0.93.0
_gitlabsha=8db408efd47a08277c0a9b219d5c9200
pkgrel=0
pkgdesc="apk-polkit-rs exposes a DBus API for APK, the Alpine Package Keeper"
url="https://gitlab.alpinelinux.org/Cogitri/apk-polkit"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le"
license="GPL-3.0-or-later"
depends="polkit"
makedepends="meson cargo polkit-dev glib-dev lua5.3-lzlib lua5.3
	openssl-dev clang-dev"
checkdepends="appstream-glib bash apk-tools"
subpackages="$pkgname-dev $pkgname-dbg $pkgname-lang"
source="https://gitlab.alpinelinux.org/Cogitri/apk-polkit-rs/uploads/$_gitlabsha/apk-polkit-rs-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile ${JOBS:+-j ${JOBS}} -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	rm "$pkgdir"/usr/lib/libapk.a
}

sha512sums="818e163a0e121acf887d4d15b986dd1cf13e49386453a120dc62ad8c45c5524cddac87fe6424bd8c2170dee39c43cf1a9721edd3265b619f74aec231eae27790  apk-polkit-rs-0.93.0.tar.xz"