PKGBUILDs/community/gnome-software/PKGBUILD

67 lines
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)
2018-10-25 00:11:35 +00:00
pkgver=3.30.5
2018-02-08 19:48:18 +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
2018-03-25 00:38:29 +00:00
docbook-xsl git gobject-introspection gtk-doc meson gspell)
2018-10-25 00:11:35 +00:00
_commit=84b4daeda08b888d0685006348b8b1598842c983 # tags/3.30.5^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 ubuntuone=false \
-D ubuntu_reviews=false \
-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
meson test -C build || :
}
2018-01-26 13:45:50 +00:00
package_gnome-software() {
groups=('gnome')
2018-03-25 00:38:29 +00:00
depends=(appstream-glib gnome-desktop gsettings-desktop-schemas gtkspell3 libpackagekit-glib gspell)
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
# Split out packagekit plugin
mkdir "$srcdir"/packagekit-plugin
2018-09-17 18:42:46 +00:00
mv "$pkgdir"/usr/lib/gs-plugins-12/libgs_plugin_{packagekit*,systemd-updates}.so "$srcdir"/packagekit-plugin
2018-01-26 13:45:50 +00:00
}
package_gnome-software-packagekit-plugin() {
pkgdesc="PackageKit support plugin for GNOME Software"
depends=(archlinux-appstream-data gnome-software packagekit)
2018-09-17 18:42:46 +00:00
mkdir -p "$pkgdir"/usr/lib/gs-plugins-12
mv "$srcdir"/packagekit-plugin/* "$pkgdir"/usr/lib/gs-plugins-12/
2017-06-27 18:53:59 +00:00
}