blob: 3af8ecff8a46eaf66d6fdfa43b764f3f16e22356 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Maintainer: David Cohen <dacohen@pm.me>
# Contributor: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Contributor: Fabian Bornschein <fabiscafe-cat-mailbox-dog-org>
# Contributor: Jan de Groot <jgc@archlinux.org>
# Contributor: Yosef Or Boczko <yoseforb@gnome.org>
pkgname=gnome-software-snapd
pkgver=44.1
pkgrel=1
pkgdesc="GNOME Software Tools with snapd"
url="https://wiki.gnome.org/Apps/Software/"
arch=(x86_64)
license=(GPL)
makedepends=(appstream gsettings-desktop-schemas libpackagekit-glib flatpak
fwupd docbook-xsl git gobject-introspection gtk-doc meson
gnome-online-accounts libxmlb malcontent gtk4 libadwaita
libsysprof-capture libglib-testing libsoup3)
provides=(gnome-software)
conflicts=(gnome-software)
_commit=9afc9643998f39817b9c70f772535178da45b95d # tags/44.1^0
source=(
"git+https://gitlab.gnome.org/GNOME/gnome-software.git#commit=$_commit"
"git+https://gitlab.gnome.org/mwleeds/gnome-pwa-list.git"
)
sha256sums=('SKIP'
'SKIP')
pkgver() {
cd ${pkgbase%-snapd}
git describe --tags | sed 's/[^-]*-g/r&/;s/-/+/g'
}
prepare() {
cd ${pkgbase%-snapd}
git submodule init
git submodule set-url subprojects/gnome-pwa-list "$srcdir/gnome-pwa-list"
git -c protocol.file.allow=always submodule update
}
build() {
arch-meson ${pkgbase%-snapd} build -Dsnap=true
meson compile -C build
}
# Not running tests - need root and a D-Bus system bus
_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-snapd() {
groups=(gnome)
depends=(libxmlb gsettings-desktop-schemas libpackagekit-glib gtk4 libadwaita
gnome-online-accounts appstream libsysprof-capture libsoup3 snapd-glib)
optdepends=('flatpak: Flatpak support plugin'
'fwupd: fwupd support plugin'
'malcontent: Parental control plugin')
meson install -C build --destdir "$pkgdir"
local pkglibdir="$pkgdir/usr/lib/gnome-software"
_pick packagekit-plugin "$pkglibdir"/plugins-*/libgs_plugin_packagekit*.so
}
# vim:set sw=2 sts=-1 et:
|