temp/gnome-software-plugin-apk: upgrade to 0.8.1 and sync with upstream (MR 1593)

* add install_if to pull in w/ gnome-software
  90b924a334
* use abuild-meson & meson compile/test/install
  47360782ab
* use apk-polkit-rs instead of apk-polkit
  0f6c2d95f1
* upgrade to 0.8.1
  ce795a4d27
* don't pull in alpinelinux-apppstream-data
  c35a1b4ba7

NOTE: alpinelinux-apppstream-data was removed in
      946967b01f
This commit is contained in:
Alexey Min 2020-09-21 02:01:22 +03:00 committed by Oliver Smith
parent 4d8473e255
commit ee6a541234
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -1,31 +1,33 @@
# Forked from Alpine to rebuild against gnome-software with mobile patches # Forked from Alpine to rebuild against gnome-software with mobile patches
pkgname=gnome-software-plugin-apk pkgname=gnome-software-plugin-apk
pkgver=9999 pkgver=9999
_pkgver=0.7.0 _pkgver=0.8.1
pkgrel=2 pkgrel=3
pkgdesc="APK plugin for GNOME Software" pkgdesc="APK plugin for GNOME Software"
url="https://github.com/Cogitri/gnome-software-plugin-apk" url="https://github.com/Cogitri/gnome-software-plugin-apk"
arch="x86_64 aarch64" # apk-polkit arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # apk-polkit-rs
license="GPL-2.0-or-later" license="GPL-2.0-or-later"
depends="alpinelinux-appstream-data" makedepends="meson gnome-software-dev gnome-software-static apk-polkit-rs-dev"
makedepends="meson gnome-software-dev gnome-software-static apk-polkit-dev"
options="!check" # no tests options="!check" # no tests
source="https://github.com/Cogitri/gnome-software-plugin-apk/archive/v$_pkgver/gnome-software-plugin-apk-$_pkgver.tar.gz" source="https://github.com/Cogitri/gnome-software-plugin-apk/archive/v$_pkgver/gnome-software-plugin-apk-$_pkgver.tar.gz"
# override builddir, because "$_pkgver" != "$pkgver"
builddir="$srcdir/$pkgname-$_pkgver" builddir="$srcdir/$pkgname-$_pkgver"
# We can't depend on gnome-software-plugin-apk directly in gnome-software
# since that causes a circular dep:
# gnome-software -> gnome-software-plugin-apk -> gnome-software-dev
case "$CARCH" in
x86_64|armv7|armhf|aarch64|x86|ppc64le) install_if="gnome-software" ;;
esac
build() { build() {
meson \ abuild-meson . output
--prefix=/usr \ meson compile ${JOBS:+-j ${JOBS}} -C output
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--buildtype=plain \
. output
ninja -C output
} }
package() { package() {
DESTDIR="$pkgdir" ninja -C output install DESTDIR="$pkgdir" meson install --no-rebuild -C output
} }
sha512sums="fd1e470d926f795584dee2a48f55b54ae2e88d446eb6d85cbbcc98ecc6121da1c7dbb81266d927f3fa19e04fb04fed4a9512f994819f762ae56bc72c321b52db gnome-software-plugin-apk-0.7.0.tar.gz" sha512sums="843387b54d846a7262175a9397811f1495870744f72b896e356321467d772f2b3b50dcdba402f528f32323f86d3a26e48a13ac15bb4ad59915d0f8659de94e22 gnome-software-plugin-apk-0.8.1.tar.gz"