diff --git a/srcpkgs/gnome-software-devel b/srcpkgs/gnome-software-devel new file mode 120000 index 00000000000..8e83b5bc2ea --- /dev/null +++ b/srcpkgs/gnome-software-devel @@ -0,0 +1 @@ +gnome-software \ No newline at end of file diff --git a/srcpkgs/gnome-software/template b/srcpkgs/gnome-software/template new file mode 100644 index 00000000000..09fb89a4fdd --- /dev/null +++ b/srcpkgs/gnome-software/template @@ -0,0 +1,45 @@ +# Template file for 'gnome-software' +pkgname=gnome-software +version=42.4 +revision=1 +build_style=meson +configure_args="-Dvalgrind=false -Dpackagekit=false -Dfwupd=false + -Dmalcontent=false $(vopt_bool gtk_doc) -Dsoup2=true" +hostmakedepends="pkg-config tar glib-devel gettext libxslt docbook-xsl + $(vopt_if gtk_doc gtk-doc)" +makedepends="AppStream-devel libxmlb-devel gnome-online-accounts-devel + json-glib-devel gtk4-devel libadwaita-devel gsettings-desktop-schemas-devel + gspell-devel polkit-devel flatpak-devel libgudev-devel libsoup-devel" +checkdepends="dbus" +short_desc="GNOME Software Center (flatpak only)" +maintainer="Michal Vasilek " +license="GPL-3.0-or-later" +homepage="https://gitlab.gnome.org/GNOME/gnome-software" +distfiles="https://gitlab.gnome.org/GNOME/gnome-software/-/archive/${version}/gnome-software-${version}.tar.gz" +checksum=adaa905239ed3a3f6df40c9257c67f96dec891abdac0575f97577f1d97d555b1 +make_check=ci-skip # gs-self-test-modalias, gs-self-test-repos and gs-self-test-src fail in CI + +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 + } +}