# Contributor: Rasmus Thomsen # Maintainer: team/gnome pkgname=gnome-software pkgver=43.5 pkgrel=0 pkgdesc="Software lets you install and update applications and system extensions" url="https://wiki.gnome.org/Apps/Software" arch="all" license="GPL-2.0-or-later" makedepends=" appstream-dev flatpak-dev gdk-pixbuf-dev glib-dev gsettings-desktop-schemas-dev gtk4.0-dev gtk-doc json-glib-dev libadwaita-dev libgudev-dev libsoup3-dev libxmlb-dev meson ostree-dev polkit-dev " options="!check" # lots of failing tests install="$pkgname.post-upgrade" subpackages=" $pkgname-dbg $pkgname-lang $pkgname-doc $pkgname-dev $pkgname-lib $pkgname-plugin-flatpak:flatpak_plugin " source="https://download.gnome.org/sources/gnome-software/${pkgver%.*}/gnome-software-$pkgver.tar.xz 0001-disable-Automatic-Updates-options.patch 1613.patch org.gnome.software.gschema.override " case "$CARCH" in x86|x86_64|aarch64|armv7) makedepends="$makedepends fwupd-dev" ;; esac build() { case "$CARCH" in x86|x86_64|aarch64|armv7) conf="-Dfwupd=true" ;; *) conf="-Dfwupd=false" ;; esac abuild-meson \ -Dmalcontent=false \ -Dpackagekit=false \ -Dwebapps=false \ -Dhardcoded_foss_webapps=false \ -Dhardcoded_proprietary_webapps=false \ $conf \ . output meson compile -C output } check() { meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output install -Dm644 "$srcdir"/org.gnome.software.gschema.override \ -t "$pkgdir"/usr/share/glib-2.0/schemas/ } dev() { default_dev amove usr/lib/gnome-software/libgnomesoftware.so } lib() { pkgdesc="$pkgdesc (shared library)" depends="" amove usr/lib/gnome-software/libgnomesoftware.so.* } flatpak_plugin() { pkgdesc="$pkgdesc (flatpak plugin)" install_if="$pkgname=$pkgver-r$pkgrel flatpak" depends="" amove usr/lib/gnome-software/plugins-19/libgs_plugin_flatpak.so amove usr/share/metainfo/org.gnome.Software.Plugin.Flatpak.metainfo.xml } sha512sums=" c3d0b05122f5444b1db00719b99f80771ac2ee25ac3caea053bdc734e9faa9730263d20408d4bd87430141392613504b8dff59917eb6a97765302f04ff4306d0 gnome-software-43.5.tar.xz 3834821e5540d0e71d08f8b8b602fdaa0e5cf8d4fd434cd081d61d11a898ed366972992470bb67c47beef5eea8c92c492e1eae25d66930e854208977441e49a4 0001-disable-Automatic-Updates-options.patch b600cd6381615c0b5260d5eadb4301a9a4d4fc079972b897bfc95cddf3cea0a5b9d32b7319fdc04a3f7d025e7a0251cbef25d6073fd980d6e54abb03fd0169a3 1613.patch 392d13b84ffe0ce9502c3beac1d2dffd1eef6df88ca4b2c78b59152130db94480865f3a9743b7f24bb0e44f0c5a19f0d8a22c4363d1e1a55778870f9da744d28 org.gnome.software.gschema.override "