2020-09-04 20:09:59 +00:00
|
|
|
# Forked from Alpine to rebuild against gnome-software with mobile patches
|
|
|
|
pkgname=gnome-software-plugin-apk
|
|
|
|
pkgver=9999
|
2020-09-20 23:01:22 +00:00
|
|
|
_pkgver=0.8.1
|
|
|
|
pkgrel=3
|
2020-09-04 20:09:59 +00:00
|
|
|
pkgdesc="APK plugin for GNOME Software"
|
|
|
|
url="https://github.com/Cogitri/gnome-software-plugin-apk"
|
2020-09-20 23:01:22 +00:00
|
|
|
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # apk-polkit-rs
|
2020-09-04 20:09:59 +00:00
|
|
|
license="GPL-2.0-or-later"
|
2020-09-20 23:01:22 +00:00
|
|
|
makedepends="meson gnome-software-dev gnome-software-static apk-polkit-rs-dev"
|
2020-09-04 20:09:59 +00:00
|
|
|
options="!check" # no tests
|
|
|
|
source="https://github.com/Cogitri/gnome-software-plugin-apk/archive/v$_pkgver/gnome-software-plugin-apk-$_pkgver.tar.gz"
|
2020-09-20 23:01:22 +00:00
|
|
|
|
|
|
|
# override builddir, because "$_pkgver" != "$pkgver"
|
2020-09-04 20:09:59 +00:00
|
|
|
builddir="$srcdir/$pkgname-$_pkgver"
|
|
|
|
|
2020-09-20 23:01:22 +00:00
|
|
|
# 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
|
|
|
|
|
2020-09-04 20:09:59 +00:00
|
|
|
build() {
|
2020-09-20 23:01:22 +00:00
|
|
|
abuild-meson . output
|
|
|
|
meson compile ${JOBS:+-j ${JOBS}} -C output
|
2020-09-04 20:09:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-09-20 23:01:22 +00:00
|
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
2020-09-04 20:09:59 +00:00
|
|
|
}
|
|
|
|
|
2020-09-20 23:01:22 +00:00
|
|
|
sha512sums="843387b54d846a7262175a9397811f1495870744f72b896e356321467d772f2b3b50dcdba402f528f32323f86d3a26e48a13ac15bb4ad59915d0f8659de94e22 gnome-software-plugin-apk-0.8.1.tar.gz"
|