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-02-08 21:20:39 +00:00
|
|
|
pkgver=3.38.1
|
|
|
|
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-01-05 22:59:45 +00:00
|
|
|
makedepends=(appstream-glib gnome-desktop libpackagekit-glib flatpak
|
2019-03-16 00:10:48 +00:00
|
|
|
docbook-xsl git gobject-introspection gspell gtk-doc meson
|
2020-10-05 19:12:25 +00:00
|
|
|
gnome-online-accounts libxmlb malcontent sysprof)
|
2021-02-08 21:20:39 +00:00
|
|
|
_commit=67f67bbaceb5c8a0e21c5f6b21b9be276c1165b7 # tags/3.38.1^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"
|
|
|
|
|
2020-10-05 19:12:25 +00:00
|
|
|
arch-meson $pkgbase build -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)
|
2019-03-16 00:10:48 +00:00
|
|
|
depends=(libxmlb gnome-desktop gsettings-desktop-schemas gspell libpackagekit-glib
|
2021-01-05 22:59:45 +00:00
|
|
|
gnome-online-accounts appstream-glib)
|
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
|
|
|
|
2018-09-17 18:42:46 +00:00
|
|
|
DESTDIR="$pkgdir" meson install -C build
|
2018-01-26 13:45:50 +00:00
|
|
|
|
2019-03-16 00:10:48 +00:00
|
|
|
### 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
|
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
|
|
|
}
|