aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2020-03-31 14:56:41 +0200
committerGuido Günther <agx@sigxcpu.org>2020-03-31 14:56:41 +0200
commitfabe5a19a6068a2d47e11f8316a3a2d30aeff42e (patch)
treec85168d39d762d1a99c77b807244a5b3c15d0165 /data
parent5bcfd0ee2bbae2d638fd5abc3796be7d04af3747 (diff)
Switch to meson
Modernize the files that need updating for that.
Diffstat (limited to 'data')
-rw-r--r--data/meson.build30
-rw-r--r--data/org.gnome.PrepaidManager.gschema.xml (renamed from data/org.gnome.PrepaidManager.gschema.xml.in.in)34
-rw-r--r--data/prepaid-manager-applet.appdata.xml.in32
3 files changed, 62 insertions, 34 deletions
diff --git a/data/meson.build b/data/meson.build
new file mode 100644
index 0000000..3e052ac
--- /dev/null
+++ b/data/meson.build
@@ -0,0 +1,30 @@
+schemas = ['org.gnome.PrepaidManager.gschema.xml']
+compiled = gnome.compile_schemas(
+ build_by_default: true
+)
+
+install_data(
+ schemas,
+ install_dir: 'share/glib-2.0/schemas'
+)
+
+appstream_file = i18n.merge_file(
+ input: 'prepaid-manager-applet.appdata.xml.in',
+ output: 'prepaid-manager-applet.appdata.xml',
+ po_dir: '../po',
+ install: true,
+ install_dir: join_paths(get_option('datadir'), 'appdata')
+)
+
+# Verify the AppStream file with the appropriate tool, if found.
+appstream_util = find_program('appstream-util', required: false)
+if appstream_util.found()
+ test('Validate appstream file', appstream_util,
+ args: ['validate-relax', appstream_file]
+ )
+endif
+
+iconsdir = join_paths(get_option('datadir'), 'icons', 'hicolor')
+foreach size: ['scalable', '128x128', '64x64', '48x48', '32x32']
+ install_subdir('icons/' + size, install_dir: iconsdir)
+endforeach
diff --git a/data/org.gnome.PrepaidManager.gschema.xml.in.in b/data/org.gnome.PrepaidManager.gschema.xml
index 2b75c8e..75609a3 100644
--- a/data/org.gnome.PrepaidManager.gschema.xml.in.in
+++ b/data/org.gnome.PrepaidManager.gschema.xml
@@ -1,43 +1,43 @@
<schemalist>
- <schema id="org.gnome.PrepaidManager" path="/apps/prepaid-manager/" gettext-domain="@GETTEXT_PACKAGE@">
+ <schema id="org.gnome.PrepaidManager" path="/apps/prepaid-manager/">
<key name="accounts" type="as">
<default>[]</default>
- <_summary>Accounts</_summary>
- <_description>
+ <summary>Accounts</summary>
+ <description>
List of configured accounts. The account at your GSM/UMTS provider is
identified by the imsi on your SIM card.
- </_description>
+ </description>
</key>
</schema>
- <schema id="org.gnome.PrepaidManager.account" gettext-domain="@GETTEXT_PACKAGE@">
+ <schema id="org.gnome.PrepaidManager.account">
<key name="provider" type="s">
<default>""</default>
- <_summary>The providers name</_summary>
- <_description>
+ <summary>The providers name</summary>
+ <description>
The name of the mobile broadband provider.
- </_description>
+ </description>
</key>
<key name="country" type="s">
<default>""</default>
- <_summary>The country the provider operates in</_summary>
- <_description>
+ <summary>The country the provider operates in</summary>
+ <description>
This is the country where you bought the SIM card.
- </_description>
+ </description>
</key>
<key name="balance" type="s">
<default>"The current balance is unknown."</default>
- <_summary>Balance</_summary>
- <_description>
+ <summary>Balance</summary>
+ <description>
The current balance of this account.
- </_description>
+ </description>
</key>
<key name="timestamp" type="s">
<default>""</default>
- <_summary>Update timestamp</_summary>
- <_description>
+ <summary>Update timestamp</summary>
+ <description>
The last time the balance got updated.
- </_description>
+ </description>
</key>
</schema>
</schemalist>
diff --git a/data/prepaid-manager-applet.appdata.xml.in b/data/prepaid-manager-applet.appdata.xml.in
index a180ca5..e6b5aa2 100644
--- a/data/prepaid-manager-applet.appdata.xml.in
+++ b/data/prepaid-manager-applet.appdata.xml.in
@@ -1,22 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
-<!-- Copyright 2014 Guido Günther <agx@sigxcpu.org> -->
-<application>
- <id type="desktop">prepaid-manager-applet.desktop</id>
- <metadata_license>CC-BY-SA-3.0</metadata_license>
- <description>
- <_p>
+<component type="desktop">
+ <id>org.gnome.PrepaidManager</id>
+ <metadata_license>CC-BY-SA-3.0</metadata_license>
+ <project_license>GPL-3.0-or-later</project_license>
+ <name>Prepaid manager</name>
+ <description>
GNOME Prepaid-manager-applet is an applet for the GNOME Desktop that
allows you to check and top up the balance of GSM mobile prepaid SIM cards.
- </_p>
- <_p>
+
It uses ModemManager to talk to the modem and mobile-broadband-provider-info
to determine the necessary USSD codes for your provider.
- </_p>
- </description>
- <screenshots>
- <screenshot type="default" width="411" height="183">https://honk.sigxcpu.org/piki/projects/ppm/check.png</screenshot>
- <screenshot width="411" height="183">https://honk.sigxcpu.org/piki/projects/ppm/topup.png</screenshot>
- </screenshots>
- <url type="homepage">https://honk.sigxcpu.org/piki/projects/ppm/</url>
- <updatecontact>agx_at_sigxcpu.org</updatecontact>
-</application>
+ </description>
+ <url type="homepage">https://honk.sigxcpu.org/piki/projects/ppm/</url>
+ <updatecontact>agx@sigxcpu.org</updatecontact>
+ <screenshots>
+ <screenshot type="default" width="411" height="183">https://honk.sigxcpu.org/piki/projects/ppm/check.png</screenshot>
+ <screenshot width="411" height="183">https://honk.sigxcpu.org/piki/projects/ppm/topup.png</screenshot>
+ </screenshots>
+</component>