summaryrefslogtreecommitdiff
path: root/community/gnome-software/APKBUILD
blob: acbcc937dfd07a5d63f16aa6c4123ff2be88c711 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <ablocorrea@hotmail.com>
pkgname=gnome-software
pkgver=43.5
pkgrel=0
pkgdesc="Software lets you install and update applications and system extensions"
url="https://wiki.gnome.org/Apps/Software"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	appstream-dev
	flatpak-dev
	gdk-pixbuf-dev
	glib-dev
	gsettings-desktop-schemas-dev
	gtk4.0-dev
	gtk-doc
	json-glib-dev
	libadwaita-dev
	libgudev-dev
	libsoup3-dev
	libxmlb-dev
	meson
	ostree-dev
	polkit-dev
	"
options="!check" # lots of failing tests
install="$pkgname.post-upgrade"
subpackages="
	$pkgname-dbg
	$pkgname-lang
	$pkgname-doc
	$pkgname-dev
	$pkgname-lib
	$pkgname-plugin-flatpak:flatpak_plugin
	"
source="https://download.gnome.org/sources/gnome-software/${pkgver%.*}/gnome-software-$pkgver.tar.xz
	0001-disable-Automatic-Updates-options.patch
	1613.patch
	org.gnome.software.gschema.override
	"

case "$CARCH" in
	x86|x86_64|aarch64|armv7) makedepends="$makedepends fwupd-dev" ;;
esac

build() {
	case "$CARCH" in
		x86|x86_64|aarch64|armv7) conf="-Dfwupd=true" ;;
		*) conf="-Dfwupd=false" ;;
	esac

	abuild-meson \
		-Dmalcontent=false \
		-Dpackagekit=false \
		-Dwebapps=false \
		-Dhardcoded_foss_webapps=false \
		-Dhardcoded_proprietary_webapps=false \
		$conf \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
	install -Dm644 "$srcdir"/org.gnome.software.gschema.override \
		-t "$pkgdir"/usr/share/glib-2.0/schemas/
}

dev() {
	default_dev

	amove usr/lib/gnome-software/libgnomesoftware.so
}

lib() {
	pkgdesc="$pkgdesc (shared library)"
	depends=""

	amove usr/lib/gnome-software/libgnomesoftware.so.*
}

flatpak_plugin() {
	pkgdesc="$pkgdesc (flatpak plugin)"
	install_if="$pkgname=$pkgver-r$pkgrel flatpak"
	depends=""

	amove usr/lib/gnome-software/plugins-19/libgs_plugin_flatpak.so
	amove usr/share/metainfo/org.gnome.Software.Plugin.Flatpak.metainfo.xml
}

sha512sums="
c3d0b05122f5444b1db00719b99f80771ac2ee25ac3caea053bdc734e9faa9730263d20408d4bd87430141392613504b8dff59917eb6a97765302f04ff4306d0  gnome-software-43.5.tar.xz
3834821e5540d0e71d08f8b8b602fdaa0e5cf8d4fd434cd081d61d11a898ed366972992470bb67c47beef5eea8c92c492e1eae25d66930e854208977441e49a4  0001-disable-Automatic-Updates-options.patch
b600cd6381615c0b5260d5eadb4301a9a4d4fc079972b897bfc95cddf3cea0a5b9d32b7319fdc04a3f7d025e7a0251cbef25d6073fd980d6e54abb03fd0169a3  1613.patch
392d13b84ffe0ce9502c3beac1d2dffd1eef6df88ca4b2c78b59152130db94480865f3a9743b7f24bb0e44f0c5a19f0d8a22c4363d1e1a55778870f9da744d28  org.gnome.software.gschema.override
"