summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorKevin Majewski2021-04-01 23:08:01 +0200
committerKevin Majewski2021-04-01 23:08:01 +0200
commit2e422018b017ad78f32e0021dc1307b090dc4c49 (patch)
treef0bb27f709f19e371d3068617023ff8ac1c177e4 /PKGBUILD
parent0e7484c8d8ab3ec4361e64d2b4a37b881ac990ed (diff)
downloadaur-2e422018b017ad78f32e0021dc1307b090dc4c49.tar.gz
Fix package
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD61
1 files changed, 33 insertions, 28 deletions
diff --git a/PKGBUILD b/PKGBUILD
index d0782c4b494c..b28715246b1e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,61 +1,66 @@
-# Maintainer: Ricardo Liang (rliang) <ricardoliang@gmail.com>
-
pkgbase=gnome-software-git
pkgname=(gnome-software-git gnome-software-packagekit-plugin-git)
-pkgver=3.36.0+1+ge5f3d50f
+pkgver=40.0+99+g3f5ae4dc
pkgrel=1
pkgdesc="GNOME Software Tools"
url="https://wiki.gnome.org/Apps/Software/"
arch=(x86_64)
license=(GPL2)
-makedepends=(appstream-glib gnome-desktop libpackagekit-glib flatpak fwupd ostree
- docbook-xsl git gobject-introspection gspell gtk-doc meson valgrind malcontent)
+makedepends=('appstream' 'gsettings-desktop-schemas' 'libpackagekit-glib' 'flatpak'
+ 'fwupd' 'docbook-xsl' 'git' 'gobject-introspection' 'gspell' 'gtk-doc' 'meson'
+ 'valgrind' 'gnome-online-accounts' 'libxmlb' 'malcontent' 'libhandy')
source=("git+https://gitlab.gnome.org/GNOME/gnome-software.git")
-sha256sums=('SKIP')
+b2sums=('SKIP')
pkgver() {
cd gnome-software
git describe --tags | sed 's/^GNOME_SOFTWARE_//;s/_/./g;s/-/+/g'
}
-prepare() {
- cd gnome-software
-}
-
build() {
- arch-meson gnome-software build \
- -D ubuntuone=false \
- -D ubuntu_reviews=false
- ninja -C build
+ # Ensure static library is non-LTO compatible
+ CFLAGS+=" -ffat-lto-objects"
+
+ arch-meson gnome-software build -D sysprof=disabled
+ meson compile -C build
}
check() {
# build container troubles
- meson test -C build || :
+ 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-git() {
- groups=('gnome')
- provides=('gnome-software')
- conflicts=('gnome-software')
- depends=(appstream-glib gnome-desktop gsettings-desktop-schemas gspell libpackagekit-glib)
+ depends=('libxmlb' 'gsettings-desktop-schemas' 'gspell' 'libpackagekit-glib'
+ 'gnome-online-accounts' 'appstream' 'libhandy')
optdepends=('flatpak: Flatpak support plugin'
'fwupd: fwupd support plugin'
- 'ostree: OSTree support plugin')
+ 'malcontent: Parental control plugin')
+ provides=('gnome-software')
+ conflicts=('gnome-software')
DESTDIR="$pkgdir" meson install -C build
- # Split out packagekit plugin
- mkdir "$srcdir"/packagekit-plugin
- mv "$pkgdir"/usr/lib/gs-plugins-*/libgs_plugin_{packagekit*,systemd-updates}.so "$srcdir"/packagekit-plugin
+### Split gnome-software-packagekit-plugin-git
+ 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
}
package_gnome-software-packagekit-plugin-git() {
+ pkgdesc="PackageKit support plugin for GNOME Software"
+ depends=('archlinux-appstream-data' 'gnome-software' 'packagekit')
provides=('gnome-software-packagekit-plugin')
conflicts=('gnome-software-packagekit-plugin')
- pkgdesc="PackageKit support plugin for GNOME Software"
- depends=(archlinux-appstream-data gnome-software packagekit)
-
- mkdir -p "$pkgdir"/usr/lib/gs-plugins-*
- mv "$srcdir"/packagekit-plugin/* "$pkgdir"/usr/lib/gs-plugins-*/
+ mv packagekit-plugin/* "$pkgdir"
}