Commit b0aea1e5 authored by Rasmus Thomsen's avatar Rasmus Thomsen Committed by Leo

testing/gnome-maps: upgrade to 3.32.2.1

* run tests
parent 6bf412c8
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=gnome-maps
pkgver=3.32.2
pkgver=3.32.2.1
pkgrel=0
pkgdesc="A simple map client"
url="https://wiki.gnome.org/Apps/Maps"
......@@ -10,9 +10,10 @@ license="GPL-2.0-or-later"
depends="gfbgraph"
makedepends="meson glib-dev gjs-dev gtk+3.0-dev gobject-introspection-dev geoclue-dev
libgee-dev folks-dev geocode-glib-dev libchamplain-dev libxml2-dev rest-dev"
options="!check" # no tests
checkdepends="appstream-glib desktop-file-utils"
subpackages="$pkgname-lang"
source="https://download.gnome.org/sources/gnome-maps/${pkgver%.*}/gnome-maps-${pkgver}.tar.xz"
source="https://download.gnome.org/sources/gnome-maps/${pkgver%.*.*}/gnome-maps-${pkgver}.tar.xz
Add-validation-tests-for-desktop-and-appdata.patch"
build() {
meson \
......@@ -25,8 +26,13 @@ build() {
ninja -C output
}
check() {
ninja -C output test
}
package() {
DESTDIR="$pkgdir" ninja -C output install
}
sha512sums="1e2f25f5e584e9b54a9e862fdddb6a65267b6691b88e3cd2a4c2a57a6f03772da1b32eefaa5effe97b5f1b620217c9f04ca9f6fbe39d2352c5c0fb821591deb3 gnome-maps-3.32.2.tar.xz"
sha512sums="484277dbbf244c5f50f8761c26db8ab31a2294152bc0f7fd81d921802f67cb6fa98e7f2871439c896fb06d5fc11e41cc4a960fa5f552e436e8e756efed80a821 gnome-maps-3.32.2.1.tar.xz
88017be4f6bb46c6ee28fbf475038300fe9ddacf4dc9484225278239b89b3c91b97a8c7d0194a48c503327affe8e10d600d44514a5813ffc56846c446e9434c5 Add-validation-tests-for-desktop-and-appdata.patch"
Upstream: Yes
Reason: Actually run tests
diff --git a/data/meson.build b/data/meson.build
index 349ff25..2be4ee7 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -13,7 +13,7 @@ install_data(
desktop = app_id + '.desktop'
-custom_target('desktop-file',
+desktop_file = custom_target('desktop-file',
input: desktop + '.in',
output: desktop,
install: true,
@@ -32,7 +32,7 @@ install_data(
appdata = app_id + '.appdata.xml'
-i18n.merge_file(
+appdata_file = i18n.merge_file(
appdata,
input: appdata + '.in',
output: appdata,
@@ -53,4 +53,28 @@ configure_file(
install_dir: join_paths(datadir, 'dbus-1', 'services')
)
-subdir('icons')
+desktop_file_validate = find_program('desktop-file-validate', required: false)
+if desktop_file_validate.found()
+ test(
+ 'validate-desktop',
+ desktop_file_validate,
+ args: [
+ desktop_file.full_path()
+ ]
+ )
+endif
+
+appstream_util = find_program('appstream-util', required: false)
+if appstream_util.found()
+ test(
+ 'validate-appdata',
+ appstream_util,
+ args: [
+ 'validate-relax',
+ '--nonet',
+ appdata_file.full_path()
+ ]
+ )
+endif
+
+subdir('icons')
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment