diff options
Diffstat (limited to 'community/apk-polkit-rs')
-rw-r--r-- | community/apk-polkit-rs/APKBUILD | 35 | ||||
-rw-r--r-- | community/apk-polkit-rs/apk-polkit-rs.post-install | 8 | ||||
-rw-r--r-- | community/apk-polkit-rs/apk-polkit-rs.post-upgrade | 11 |
3 files changed, 41 insertions, 13 deletions
diff --git a/community/apk-polkit-rs/APKBUILD b/community/apk-polkit-rs/APKBUILD index 1c23e754402..bc1cf868a00 100644 --- a/community/apk-polkit-rs/APKBUILD +++ b/community/apk-polkit-rs/APKBUILD @@ -1,32 +1,41 @@ # Contributor: Rasmus Thomsen <oss@cogitri.dev> # Maintainer: Rasmus Thomsen <oss@cogitri.dev> pkgname=apk-polkit-rs -pkgver=0.93.0 -_gitlabsha=8db408efd47a08277c0a9b219d5c9200 -pkgrel=1 +pkgver=2.1.1 +_gitlabsha=d52c3da65fe202a9e97c3d228af952c6 +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" +arch="x86_64 armv7 armhf aarch64 x86 ppc64le riscv64" 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" +depends="polkit alpine-appstream-downloader" +makedepends="meson cargo polkit-dev glib-dev clang-dev apk-tools-dev" +checkdepends="appstream bash dbus py3-dbusmock" +subpackages="$pkgname-dev $pkgname-dbg $pkgname-lang $pkgname-openrc" +install="$pkgname.post-install $pkgname.post-upgrade" 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 + cargo fetch --target="$CTARGET" --locked +} + build() { abuild-meson . output - meson compile ${JOBS:+-j ${JOBS}} -C output + meson compile -C output } check() { - meson test --no-rebuild -v -C output + dbus-run-session -- \ + meson test --no-rebuild --print-errorlogs -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" +sha512sums=" +3fee5a23041708eb6008fb0cf6cba387fe32fb57a1fe1f4becb9ad2f234f4c461dad422d968503062244b3382056337d79218c99fdb30ce065d9ae9b300ec4a6 apk-polkit-rs-2.1.1.tar.xz +" diff --git a/community/apk-polkit-rs/apk-polkit-rs.post-install b/community/apk-polkit-rs/apk-polkit-rs.post-install new file mode 100644 index 00000000000..029a245ce10 --- /dev/null +++ b/community/apk-polkit-rs/apk-polkit-rs.post-install @@ -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__ diff --git a/community/apk-polkit-rs/apk-polkit-rs.post-upgrade b/community/apk-polkit-rs/apk-polkit-rs.post-upgrade new file mode 100644 index 00000000000..69a541f7848 --- /dev/null +++ b/community/apk-polkit-rs/apk-polkit-rs.post-upgrade @@ -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 |