aboutsummaryrefslogtreecommitdiffstats
path: root/community/apk-polkit-rs/APKBUILD
blob: fa96e508d91f547b9664310fab123be2b1932630 (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.92.1
_gitlabsha=a6f70dbae9195ea505c12ac2f13e266f
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="d8c0b31212e826844c7058af22508df252cf5556d4f381e6c6b26c2ba057f136970f812ef2c680cfec8c80fc7baf60923fad8190fc7f6492f867c712648e38fa  apk-polkit-rs-0.92.1.tar.xz"