PKGBUILDs/community/gnome-software/PKGBUILD

75 lines
2.2 KiB
Bash
Raw Normal View History

2017-06-27 18:53:59 +00:00
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# 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)
2019-05-24 23:44:54 +00:00
pkgver=3.32.3
2019-04-16 03:55:05 +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)
2018-09-17 18:42:46 +00:00
makedepends=(appstream-glib gnome-desktop libpackagekit-glib flatpak ostree
2019-03-16 00:10:48 +00:00
docbook-xsl git gobject-introspection gspell gtk-doc meson
gnome-online-accounts libxmlb)
2019-05-24 23:44:54 +00:00
_commit=9de385ffd6047187f94fcc019f7aa8ab5d6f6365 # tags/3.32.3^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() {
2018-03-02 18:54:29 +00:00
arch-meson $pkgbase build \
2018-09-17 18:42:46 +00:00
-D fwupd=false \
-D valgrind=false
2018-01-11 20:05:38 +00:00
ninja -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() {
groups=('gnome')
2019-03-16 00:10:48 +00:00
depends=(libxmlb gnome-desktop gsettings-desktop-schemas gspell libpackagekit-glib
2019-03-29 12:52:09 +00:00
gnome-online-accounts appstream-glib)
2018-01-26 13:45:50 +00:00
optdepends=('flatpak: Flatpak support plugin'
'fwupd: fwupd support plugin'
'ostree: OSTree support plugin')
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
}