aboutsummaryrefslogblamecommitdiffstats
path: root/community/apk-polkit-rs/APKBUILD
blob: d68304caa2537e2d8eeab4f7a95a6269f5c3f750 (plain) (tree)
1
2
3
4
5
6
7
8


                                               


                                           
                                                                             
                                                          


                                             

                                                                     
                                                     






                                                                                                              











                                                              

 
            
                                                                                                                                                             
 
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=apk-polkit-rs
pkgver=0.94.1
_gitlabsha=8fa91bdb4e6158ce5de17ef2ce4835fb
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-glib 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
}

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
}

sha512sums="
d0d0c20a228623d72f99069146464e3cef507d155bacfe90010f8ed516cc5bc31bcbf157ba708070e1932f292574016dd0d622d922e7005d26c5eb0e1a0ecdf7  apk-polkit-rs-0.94.1.tar.xz
"