aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-09-23 00:17:54 +0200
committerRasmus Thomsen <oss@cogitri.dev>2019-09-23 00:17:54 +0200
commit62db3f36a984de784e7dfc32523f71223f0cdb46 (patch)
treedcf46c729026e2f6504740749bd173e19209c7fd /community
parent026c14bd00c0e1e23dd37842e3dd3d11684b1b82 (diff)
downloadaports-62db3f36a984de784e7dfc32523f71223f0cdb46.tar.bz2
aports-62db3f36a984de784e7dfc32523f71223f0cdb46.tar.xz
community/gnome-maps: move from testing
Diffstat (limited to 'community')
-rw-r--r--community/gnome-maps/APKBUILD38
-rw-r--r--community/gnome-maps/Add-validation-tests-for-desktop-and-appdata.patch55
2 files changed, 93 insertions, 0 deletions
diff --git a/community/gnome-maps/APKBUILD b/community/gnome-maps/APKBUILD
new file mode 100644
index 0000000000..e04899317e
--- /dev/null
+++ b/community/gnome-maps/APKBUILD
@@ -0,0 +1,38 @@
+# Contributor: Rasmus Thomsen <oss@cogitri.dev>
+# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
+pkgname=gnome-maps
+pkgver=3.32.2.1
+pkgrel=0
+pkgdesc="A simple map client"
+url="https://wiki.gnome.org/Apps/Maps"
+arch="all !s390x" # gjs missing
+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"
+checkdepends="appstream-glib desktop-file-utils"
+subpackages="$pkgname-lang"
+source="https://download.gnome.org/sources/gnome-maps/${pkgver%.*.*}/gnome-maps-${pkgver}.tar.xz
+ Add-validation-tests-for-desktop-and-appdata.patch"
+
+build() {
+ meson \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --buildtype=release \
+ . output
+ ninja -C output
+}
+
+check() {
+ ninja -C output test
+}
+
+package() {
+ DESTDIR="$pkgdir" ninja -C output install
+}
+
+sha512sums="484277dbbf244c5f50f8761c26db8ab31a2294152bc0f7fd81d921802f67cb6fa98e7f2871439c896fb06d5fc11e41cc4a960fa5f552e436e8e756efed80a821 gnome-maps-3.32.2.1.tar.xz
+88017be4f6bb46c6ee28fbf475038300fe9ddacf4dc9484225278239b89b3c91b97a8c7d0194a48c503327affe8e10d600d44514a5813ffc56846c446e9434c5 Add-validation-tests-for-desktop-and-appdata.patch"
diff --git a/community/gnome-maps/Add-validation-tests-for-desktop-and-appdata.patch b/community/gnome-maps/Add-validation-tests-for-desktop-and-appdata.patch
new file mode 100644
index 0000000000..1c0307b44d
--- /dev/null
+++ b/community/gnome-maps/Add-validation-tests-for-desktop-and-appdata.patch
@@ -0,0 +1,55 @@
+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