2020-10-05 18:52:35 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
2017-06-27 18:53:59 +00:00
|
|
|
# Contributor: Jan de Groot <jgc@archlinux.org>
|
|
|
|
# Contributor: Yosef Or Boczko <yoseforb@gnome.org>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.og>
|
2018-09-17 18:42:46 +00:00
|
|
|
# - remove dependency on fwupd, specify -Dfwupd=false
|
|
|
|
# - remove makedepend on valgrind, specify -Dvalgrind=false
|
2017-06-27 18:53:59 +00:00
|
|
|
|
2018-01-26 13:45:50 +00:00
|
|
|
pkgbase=gnome-software
|
|
|
|
pkgname=(gnome-software gnome-software-packagekit-plugin)
|
2021-06-04 18:41:00 +00:00
|
|
|
pkgver=40.2
|
2021-03-26 00:36:58 +00:00
|
|
|
pkgrel=1
|
2017-06-27 18:53:59 +00:00
|
|
|
pkgdesc="GNOME Software Tools"
|
2018-03-02 18:54:29 +00:00
|
|
|
url="https://wiki.gnome.org/Apps/Software/"
|
2017-11-21 13:18:55 +00:00
|
|
|
arch=(x86_64)
|
2017-06-27 18:53:59 +00:00
|
|
|
license=(GPL2)
|
2021-03-26 00:36:58 +00:00
|
|
|
makedepends=(appstream gsettings-desktop-schemas libpackagekit-glib flatpak
|
2019-03-16 00:10:48 +00:00
|
|
|
docbook-xsl git gobject-introspection gspell gtk-doc meson
|
2021-03-26 00:36:58 +00:00
|
|
|
gnome-online-accounts libxmlb malcontent libhandy)
|
2021-06-04 18:41:00 +00:00
|
|
|
_commit=11b5e9663a7ee9fe0e5c9f97c864b804cf5271d5 # tags/40.2^0
|
2018-02-08 19:48:18 +00:00
|
|
|
source=("git+https://gitlab.gnome.org/GNOME/gnome-software.git#commit=$_commit")
|
|
|
|
sha256sums=('SKIP')
|
2017-06-27 18:53:59 +00:00
|
|
|
|
|
|
|
pkgver() {
|
2018-01-26 13:45:50 +00:00
|
|
|
cd $pkgbase
|
2017-06-27 18:53:59 +00:00
|
|
|
git describe --tags | sed 's/^GNOME_SOFTWARE_//;s/_/./g;s/-/+/g'
|
|
|
|
}
|
|
|
|
|
|
|
|
prepare() {
|
2018-01-26 13:45:50 +00:00
|
|
|
cd $pkgbase
|
2017-06-27 18:53:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2020-10-05 18:52:35 +00:00
|
|
|
# Ensure static library is non-LTO compatible
|
|
|
|
CFLAGS+=" -ffat-lto-objects"
|
|
|
|
|
2021-03-22 18:21:04 +00:00
|
|
|
arch-meson $pkgbase build -D sysprof=disabled -D fwupd=false -D valgrind=false
|
2020-10-05 18:52:35 +00:00
|
|
|
meson compile -C build
|
2017-06-27 18:53:59 +00:00
|
|
|
}
|
|
|
|
|
2018-09-17 18:42:46 +00:00
|
|
|
check() {
|
|
|
|
# build container troubles
|
2019-03-16 00:10:48 +00:00
|
|
|
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
|
2018-09-17 18:42:46 +00:00
|
|
|
}
|
|
|
|
|
2018-01-26 13:45:50 +00:00
|
|
|
package_gnome-software() {
|
2021-01-05 22:59:45 +00:00
|
|
|
groups=(gnome)
|
2021-03-26 00:36:58 +00:00
|
|
|
depends=(libxmlb gsettings-desktop-schemas gspell libpackagekit-glib
|
|
|
|
gnome-online-accounts appstream libhandy)
|
2018-01-26 13:45:50 +00:00
|
|
|
optdepends=('flatpak: Flatpak support plugin'
|
|
|
|
'fwupd: fwupd support plugin'
|
2021-01-05 22:59:45 +00:00
|
|
|
'malcontent: Parental control plugin')
|
2018-01-26 13:45:50 +00:00
|
|
|
|
2021-06-04 18:41:00 +00:00
|
|
|
meson install -C build --destdir="$pkgdir"
|
2018-01-26 13:45:50 +00:00
|
|
|
|
2019-03-16 00:10:48 +00:00
|
|
|
### Split gnome-software-packagekit-plugin
|
2021-03-26 00:36:58 +00:00
|
|
|
local pkglibdir="$pkgdir/usr/lib/gnome-software"
|
|
|
|
_pick packagekit-plugin "$pkglibdir"/plugins-*/libgs_plugin_packagekit*.so
|
|
|
|
_pick packagekit-plugin "$pkglibdir"/plugins-*/libgs_plugin_systemd-updates.so
|
2018-01-26 13:45:50 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_gnome-software-packagekit-plugin() {
|
|
|
|
pkgdesc="PackageKit support plugin for GNOME Software"
|
2019-03-29 12:52:09 +00:00
|
|
|
depends=(archlinux-appstream-data gnome-software packagekit)
|
2019-03-16 00:10:48 +00:00
|
|
|
mv packagekit-plugin/* "$pkgdir"
|
2017-06-27 18:53:59 +00:00
|
|
|
}
|