aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-06-22 10:56:38 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-06-23 07:16:47 +0000
commit85830e353e47cf23528d494b17f584643e840b42 (patch)
treeb5db3ac72244c61ae16c6739b44c61af6acc552e
parentf3eec0924f869e1cc492299731a833f1a32ad994 (diff)
downloadaports-85830e353e47cf23528d494b17f584643e840b42.tar.gz
aports-85830e353e47cf23528d494b17f584643e840b42.tar.bz2
aports-85830e353e47cf23528d494b17f584643e840b42.tar.xz
community/gnome-software: split flatpak plugin into -plugin-flatpak
Not everyone wants/needs the flatpak plugin, so split it off and auto-install it if flatpak is installed.
-rw-r--r--community/gnome-software/APKBUILD14
1 files changed, 12 insertions, 2 deletions
diff --git a/community/gnome-software/APKBUILD b/community/gnome-software/APKBUILD
index 6ccfb501be..e9400885c9 100644
--- a/community/gnome-software/APKBUILD
+++ b/community/gnome-software/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-software
pkgver=3.36.1
-pkgrel=0
+pkgrel=1
pkgdesc="Software lets you install and update applications and system extensions"
url="https://wiki.gnome.org/Apps/Software"
arch="all !s390x !mips !mips64"
@@ -11,7 +11,8 @@ makedepends="meson appstream-glib-dev gdk-pixbuf-dev libxmlb-dev glib-dev gtk+3.
json-glib-dev libsoup-dev gnome-desktop-dev gspell-dev polkit-dev gtk-doc
ostree-dev flatpak-dev libgudev-dev gnome-online-accounts-dev"
options="!check" # lots of failing tests
-subpackages="$pkgname-lang $pkgname-doc $pkgname-dbg $pkgname-static $pkgname-dev"
+subpackages="$pkgname-lang $pkgname-doc $pkgname-dbg $pkgname-static
+ $pkgname-dev $pkgname-plugin-flatpak:flatpak_plugin"
source="https://download.gnome.org/sources/gnome-software/${pkgver%.*}/gnome-software-$pkgver.tar.xz
445.patch
install-more-headers.patch
@@ -56,6 +57,15 @@ package() {
DESTDIR="$pkgdir" ninja -C output install
}
+flatpak_plugin() {
+ pkgdesc="$pkgdesc (flatpak plugin)"
+ install_if="$pkgname=$pkgver-r$pkgrel flatpak"
+ depends=""
+
+ amove usr/lib/gs-plugins-13/libgs_plugin_flatpak.so
+ amove usr/share/metainfo/org.gnome.Software.Plugin.Flatpak.metainfo.xml
+}
+
sha512sums="7d0e8c16192bbbc8f166db137dbd2e6ff9e85f7d3d37f63f41211ba3838e392bd87a8d9bf09d31b43f6d21e1a099ecdeff9114ae27fae40d563671f0bcbe50d4 gnome-software-3.36.1.tar.xz
2a8746ac0f948022b10fd29bcaf159d428954061d5ae19db86a09733f69901eda61e109ed4b3d3d484d91c182b2967e4b3bc11ce78774885bb9105a752c55c35 445.patch
e7de617dbdecaa46fad25d8fe7d7ea5db324aaed73555bbe6814357b4ac3b787269653863679cff4318250dcc7729299b549f41220f441d9033a448af28da9dd install-more-headers.patch"