mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-06 13:57:14 +02:00
community/apk-polkit-rs: add notice about service enablement and tests
This commit is contained in:
parent
2857a3d562
commit
c1be74b65a
@ -3,17 +3,17 @@
|
||||
pkgname=apk-polkit-rs
|
||||
pkgver=2.1.0
|
||||
_gitlabsha=51c4e9ff37243ed681440118272f9e33
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
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 riscv64"
|
||||
license="GPL-3.0-or-later"
|
||||
depends="polkit alpine-appstream-downloader"
|
||||
makedepends="meson cargo polkit-dev glib-dev clang-dev apk-tools-dev"
|
||||
checkdepends="appstream bash xvfb-run dbus"
|
||||
checkdepends="appstream bash dbus py3-dbusmock"
|
||||
subpackages="$pkgname-dev $pkgname-dbg $pkgname-lang"
|
||||
install="$pkgname.post-install $pkgname.post-upgrade"
|
||||
source="https://gitlab.alpinelinux.org/Cogitri/apk-polkit-rs/uploads/$_gitlabsha/apk-polkit-rs-$pkgver.tar.xz"
|
||||
options="!check" # tests need polkit etc running so just skip it on builders for now
|
||||
|
||||
case "$CARCH" in
|
||||
riscv64)
|
||||
@ -37,7 +37,6 @@ build() {
|
||||
|
||||
check() {
|
||||
dbus-run-session -- \
|
||||
xvfb-run -a \
|
||||
meson test --no-rebuild --print-errorlogs -C output
|
||||
}
|
||||
|
||||
|
8
community/apk-polkit-rs/apk-polkit-rs.post-install
Normal file
8
community/apk-polkit-rs/apk-polkit-rs.post-install
Normal file
@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
cat << __EOF__
|
||||
* apk-polkit-rs should be running for the service to be available for
|
||||
* GNOME Software. Please run:
|
||||
* "rc-update add apk-polkit-server default && rc-service apk-polkit-server start"
|
||||
* if you want GNOME Software to work with APK
|
||||
__EOF__
|
11
community/apk-polkit-rs/apk-polkit-rs.post-upgrade
Normal file
11
community/apk-polkit-rs/apk-polkit-rs.post-upgrade
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
ver_old=$2
|
||||
if [ "$(apk version -t "$ver_old" '2.1.0-r1')" = '<' ]; then
|
||||
cat <<- __EOF__
|
||||
* apk-polkit-rs should be running for the service to be available for
|
||||
* GNOME Software. Please run:
|
||||
* "rc-update add apk-polkit-server default && rc-service apk-polkit-server start"
|
||||
* if you want GNOME Software to work with APK
|
||||
__EOF__
|
||||
fi
|
Loading…
Reference in New Issue
Block a user