aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2021-01-01 15:24:18 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2021-01-01 15:24:41 +0000
commit169f471eabd9c74d6b97c0eb60a2c87a56d39cdd (patch)
tree401d48ea8d9cee18410b577db6a31ef1f9258318
parent627e979168ee6fb9c9f9fb3cd7253c0daa186775 (diff)
community/gnome-software-plugin-apk: workaround issue #12256
-rw-r--r--community/gnome-software-plugin-apk/APKBUILD8
-rw-r--r--community/gnome-software-plugin-apk/gnome-software-deps.patch31
2 files changed, 36 insertions, 3 deletions
diff --git a/community/gnome-software-plugin-apk/APKBUILD b/community/gnome-software-plugin-apk/APKBUILD
index 2482b0b8bbd..f5ad1801c7a 100644
--- a/community/gnome-software-plugin-apk/APKBUILD
+++ b/community/gnome-software-plugin-apk/APKBUILD
@@ -2,14 +2,15 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-software-plugin-apk
pkgver=0.8.2
-pkgrel=0
+pkgrel=1
pkgdesc="APK plugin for GNOME Software"
url="https://github.com/Cogitri/gnome-software-plugin-apk"
arch="x86_64 armv7 armhf aarch64 x86 ppc64le" # apk-polkit-rs
license="GPL-2.0-or-later"
makedepends="meson gnome-software-dev gnome-software-static apk-polkit-rs-dev"
options="!check" # no tests
-source="$pkgname-$pkgver.tar.gz::https://github.com/Cogitri/gnome-software-plugin-apk/archive/v$pkgver.tar.gz"
+source="$pkgname-$pkgver.tar.gz::https://github.com/Cogitri/gnome-software-plugin-apk/archive/v$pkgver.tar.gz
+ gnome-software-deps.patch"
# We can't depend on gnome-software-plugin-apk directly in gnome-software
# since that causes a circular dep:
@@ -27,4 +28,5 @@ package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
-sha512sums="45e1f790dc7c6652b54c6f75b34aa485d33b3be2499cb997e3c8c6417bb403669d99d67cc91be71caa1d5ce537672bf25a75b517882168bee89c0c540fcdb651 gnome-software-plugin-apk-0.8.2.tar.gz"
+sha512sums="45e1f790dc7c6652b54c6f75b34aa485d33b3be2499cb997e3c8c6417bb403669d99d67cc91be71caa1d5ce537672bf25a75b517882168bee89c0c540fcdb651 gnome-software-plugin-apk-0.8.2.tar.gz
+15894937b543f353803700e8c1eaaf2965c9de2e8ada439f2204834f9ba92471a8ca476d3a380e57e2966062514f1b6278f76819831d9fa2d4852ecbefa2a47c gnome-software-deps.patch"
diff --git a/community/gnome-software-plugin-apk/gnome-software-deps.patch b/community/gnome-software-plugin-apk/gnome-software-deps.patch
new file mode 100644
index 00000000000..65ba3f3897a
--- /dev/null
+++ b/community/gnome-software-plugin-apk/gnome-software-deps.patch
@@ -0,0 +1,31 @@
+workaround for https://gitlab.alpinelinux.org/alpine/aports/-/issues/12256
+
+diff --git a/meson.build b/meson.build
+index a94c123..3fa2059 100644
+--- a/meson.build
++++ b/meson.build
+@@ -6,6 +6,15 @@ project(
+ )
+
+ gnome_software_dep = dependency('gnome-software')
++appstream_glib_dep = dependency('appstream-glib')
++gio_unix_dep = dependency('gio-unix-2.0')
++gmodule_dep = dependency('gmodule-2.0')
++goa_dep = dependency('goa-1.0')
++gtk_dep = dependency('gtk+-3.0')
++json_glib_dep = dependency('json-glib-1.0')
++libsoup_dep = dependency('libsoup-2.4')
++polkit_gobject_dep = dependency('polkit-gobject-1')
++
+ plugin_install_dir = gnome_software_dep.get_pkgconfig_variable('plugindir')
+
+ cargs = ['-DG_LOG_DOMAIN="GsPluginApk"', '-DI_KNOW_THE_GNOME_SOFTWARE_API_IS_SUBJECT_TO_CHANGE']
+@@ -19,7 +28,7 @@ shared_library(
+ install : true,
+ install_dir: plugin_install_dir,
+ c_args : cargs,
+- dependencies : [ gnome_software_dep, apk_dep, glib_dep ],
++ dependencies : [ gnome_software_dep, apk_dep, glib_dep, appstream_glib_dep, gio_unix_dep, gmodule_dep, goa_dep, gtk_dep, json_glib_dep, libsoup_dep, polkit_gobject_dep]
+ )
+
+ install_data(