PKGBUILDs/community/gnome-software/PKGBUILD

64 lines
2 KiB
Bash
Raw Normal View History

2017-06-27 18:53:59 +00:00
# $Id$
# 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>
# - remove dependency on fwupd, specify -Denable-fwupd=false
# - remove makedepend on valgrind, specify -Denable-valgrind=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-05-09 12:35:56 +00:00
pkgver=3.28.2
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-01-26 13:45:50 +00:00
makedepends=(appstream-glib gnome-desktop gtkspell3 libpackagekit-glib flatpak ostree
2018-03-25 00:38:29 +00:00
docbook-xsl git gobject-introspection gtk-doc meson gspell)
2018-05-09 12:35:56 +00:00
_commit=e9b9d0996293b28f5368f964d12c577dd0eb6dc3 # tags/3.28.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() {
2018-03-02 18:54:29 +00:00
arch-meson $pkgbase build \
-D enable-rpm=false \
-D enable-ubuntuone=false \
-D enable-ubuntu-reviews=false \
-D enable-fwupd=false \
-D enable-valgrind=false
2018-01-11 20:05:38 +00:00
ninja -C build
2017-06-27 18:53:59 +00:00
}
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-01-11 20:05:38 +00:00
DESTDIR="$pkgdir" ninja -C build install
2018-01-26 13:45:50 +00:00
# Split out packagekit plugin
mkdir "$srcdir"/packagekit-plugin
mv "$pkgdir"/usr/lib/gs-plugins-11/libgs_plugin_{packagekit*,systemd-updates}.so "$srcdir"/packagekit-plugin
}
package_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-11
mv "$srcdir"/packagekit-plugin/* "$pkgdir"/usr/lib/gs-plugins-11/
2017-06-27 18:53:59 +00:00
}