48 lines
1.6 KiB
Bash
48 lines
1.6 KiB
Bash
# Template file for 'gnome-software'
|
|
pkgname=gnome-software
|
|
version=44.2
|
|
revision=1
|
|
build_style=meson
|
|
configure_args="-Dpackagekit=false -Dfwupd=false
|
|
-Dmalcontent=false -Dwebapps=false $(vopt_bool gtk_doc)
|
|
-Dhardcoded_foss_webapps=false -Dhardcoded_proprietary_webapps=false"
|
|
hostmakedepends="pkg-config tar glib-devel gettext libxslt docbook-xsl
|
|
$(vopt_if gtk_doc gtk-doc) AppStream"
|
|
makedepends="AppStream-devel libxmlb-devel
|
|
json-glib-devel gtk4-devel libadwaita-devel gsettings-desktop-schemas-devel
|
|
gspell-devel polkit-devel flatpak-devel libgudev-devel libsoup3-devel"
|
|
checkdepends="dbus"
|
|
short_desc="GNOME Software Center (flatpak only)"
|
|
maintainer="Michal Vasilek <michal@vasilek.cz>"
|
|
license="GPL-3.0-or-later"
|
|
homepage="https://gitlab.gnome.org/GNOME/gnome-software"
|
|
changelog="https://gitlab.gnome.org/GNOME/gnome-software/-/raw/main/NEWS"
|
|
distfiles="https://gitlab.gnome.org/GNOME/gnome-software/-/archive/${version}/gnome-software-${version}.tar.gz"
|
|
checksum=bedfe8652d2ceaf17eccc57d6befe6d95f09d15e486a58f0bb7a9a868d0bacc0
|
|
make_check=no # FIXME
|
|
|
|
build_options="gtk_doc"
|
|
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default+=" gtk_doc"
|
|
fi
|
|
|
|
do_check() {
|
|
# machine-id is a random, non-zero value
|
|
echo 'dcb30309cd6c8b7cc20383d85a5c7012' > /etc/machine-id
|
|
dbus-run-session meson test -C build --no-suite fedora-langpacks
|
|
rm /etc/machine-id
|
|
}
|
|
|
|
gnome-software-devel_package() {
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
if [ "$build_option_gtk_doc" ]; then
|
|
vmove usr/share/gtk-doc
|
|
fi
|
|
}
|
|
}
|