# Maintainer: Jan Alexander Steffens (heftig) # Contributor: Jan de Groot # Contributor: Yosef Or Boczko # ALARM: Kevin Mihelich # - remove dependency on fwupd, specify -Dfwupd=false # - remove makedepend on valgrind, specify -Dvalgrind=false pkgbase=gnome-software pkgname=(gnome-software gnome-software-packagekit-plugin) pkgver=3.38.2 pkgrel=2 pkgdesc="GNOME Software Tools" url="https://wiki.gnome.org/Apps/Software/" arch=(x86_64) license=(GPL2) makedepends=(appstream-glib gnome-desktop libpackagekit-glib flatpak docbook-xsl git gobject-introspection gspell gtk-doc meson gnome-online-accounts libxmlb malcontent) _commit=fcafd7ed2c8c3a8ca8062f409aac304ceb30def2 # tags/3.38.2^0 source=("git+https://gitlab.gnome.org/GNOME/gnome-software.git#commit=$_commit") sha256sums=('SKIP') pkgver() { cd $pkgbase git describe --tags | sed 's/^GNOME_SOFTWARE_//;s/_/./g;s/-/+/g' } prepare() { cd $pkgbase } build() { # Ensure static library is non-LTO compatible CFLAGS+=" -ffat-lto-objects" arch-meson $pkgbase build -D sysprof=disabled -D fwupd=false -D valgrind=false meson compile -C build } check() { # build container troubles meson test -C build --print-errorlogs || : } _pick() { local p="$1" f d; shift for f; do d="$srcdir/$p/${f#$pkgdir/}" mkdir -p "$(dirname "$d")" mv "$f" "$d" rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")" done } package_gnome-software() { groups=(gnome) depends=(libxmlb gnome-desktop gsettings-desktop-schemas gspell libpackagekit-glib gnome-online-accounts appstream-glib) optdepends=('flatpak: Flatpak support plugin' 'fwupd: fwupd support plugin' 'malcontent: Parental control plugin') DESTDIR="$pkgdir" meson install -C build ### Split gnome-software-packagekit-plugin _pick packagekit-plugin "$pkgdir"/usr/lib/gs-plugins-*/libgs_plugin_packagekit*.so _pick packagekit-plugin "$pkgdir"/usr/lib/gs-plugins-*/libgs_plugin_systemd-updates.so } package_gnome-software-packagekit-plugin() { pkgdesc="PackageKit support plugin for GNOME Software" depends=(archlinux-appstream-data gnome-software packagekit) mv packagekit-plugin/* "$pkgdir" }