PKGBUILDs/extra/gnome-software/PKGBUILD

76 lines
2.3 KiB
Bash
Raw Normal View History

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-03-12 13:34:48 +00:00
pkgver=3.38.2
2021-03-22 18:21:04 +00:00
pkgrel=2
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
2021-03-22 18:21:04 +00:00
gnome-online-accounts libxmlb malcontent)
2021-03-12 13:34:48 +00:00
_commit=fcafd7ed2c8c3a8ca8062f409aac304ceb30def2 # tags/3.38.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)
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
}