aboutsummaryrefslogtreecommitdiffstats
path: root/community/apk-polkit-rs/APKBUILD
blob: 46e708cd4e48cb2d219a3ea14a732f332a7d4f29 (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.91.0
_gitlabsha=812f3ba6b6afae7dc850ea7909cdfb2c
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="5e04d998a3c37832e16715f8973db4addbba276381ecbed47812d528bb4fdd400b7722a7a3016a3b530e7c75c5d97892b17c42d724b3437c1ea1ee8429c1541c  apk-polkit-rs-0.91.0.tar.xz"