From be71bf80d290c98c0f6a66d3dcab28515b4ea371 Mon Sep 17 00:00:00 2001 From: Lucas Fryzek Date: Fri, 4 Oct 2024 20:53:17 +0100 Subject: Initial commit --- data/com.fryzekconcepts.weegtk.desktop.in | 10 ++ data/com.fryzekconcepts.weegtk.gschema.xml | 5 + data/com.fryzekconcepts.weegtk.metainfo.xml.in | 73 ++++++++++++ data/com.fryzekconcepts.weegtk.service.in | 3 + .../scalable/apps/com.fryzekconcepts.weegtk.svg | 130 +++++++++++++++++++++ .../apps/com.fryzekconcepts.weegtk-symbolic.svg | 1 + data/icons/meson.build | 13 +++ data/meson.build | 46 ++++++++ 8 files changed, 281 insertions(+) create mode 100644 data/com.fryzekconcepts.weegtk.desktop.in create mode 100644 data/com.fryzekconcepts.weegtk.gschema.xml create mode 100644 data/com.fryzekconcepts.weegtk.metainfo.xml.in create mode 100644 data/com.fryzekconcepts.weegtk.service.in create mode 100644 data/icons/hicolor/scalable/apps/com.fryzekconcepts.weegtk.svg create mode 100644 data/icons/hicolor/symbolic/apps/com.fryzekconcepts.weegtk-symbolic.svg create mode 100644 data/icons/meson.build create mode 100644 data/meson.build (limited to 'data') diff --git a/data/com.fryzekconcepts.weegtk.desktop.in b/data/com.fryzekconcepts.weegtk.desktop.in new file mode 100644 index 0000000..b2722e5 --- /dev/null +++ b/data/com.fryzekconcepts.weegtk.desktop.in @@ -0,0 +1,10 @@ +[Desktop Entry] +Name=weegtk +Exec=weegtk +Icon=com.fryzekconcepts.weegtk +Terminal=false +Type=Application +Categories=Utility; +Keywords=GTK; +StartupNotify=true +DBusActivatable=true diff --git a/data/com.fryzekconcepts.weegtk.gschema.xml b/data/com.fryzekconcepts.weegtk.gschema.xml new file mode 100644 index 0000000..47529b2 --- /dev/null +++ b/data/com.fryzekconcepts.weegtk.gschema.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/data/com.fryzekconcepts.weegtk.metainfo.xml.in b/data/com.fryzekconcepts.weegtk.metainfo.xml.in new file mode 100644 index 0000000..cbab1f8 --- /dev/null +++ b/data/com.fryzekconcepts.weegtk.metainfo.xml.in @@ -0,0 +1,73 @@ + + + com.fryzekconcepts.weegtk + CC0-1.0 + GPL-3.0-or-later + + Weegtk + Keep the summary shorter, between 10 and 35 characters + +

No description

+
+ + + Developer name + + + + https://example.org/ + + https://example.org/repository + + https://example.org/issues + + + https://example.org/translate + https://example.org/faq + + https://example.org/help + + https://example.org/donate + + https://example.org/contact + + https://example.org/contribute + + weegtk + + com.fryzekconcepts.weegtk.desktop + + + + + + #ff00ff + #993d3d + + + + + https://example.org/example1.png + A caption + + + https://example.org/example2.png + A caption + + + + + + https://example.org/changelog.html#version_1.0.1 + +

Release description

+
    +
  • List of changes
  • +
  • List of changes
  • +
+
+
+
+ +
diff --git a/data/com.fryzekconcepts.weegtk.service.in b/data/com.fryzekconcepts.weegtk.service.in new file mode 100644 index 0000000..1ed30df --- /dev/null +++ b/data/com.fryzekconcepts.weegtk.service.in @@ -0,0 +1,3 @@ +[D-BUS Service] +Name=com.fryzekconcepts.weegtk +Exec=@bindir@/weegtk --gapplication-service diff --git a/data/icons/hicolor/scalable/apps/com.fryzekconcepts.weegtk.svg b/data/icons/hicolor/scalable/apps/com.fryzekconcepts.weegtk.svg new file mode 100644 index 0000000..a74c4df --- /dev/null +++ b/data/icons/hicolor/scalable/apps/com.fryzekconcepts.weegtk.svg @@ -0,0 +1,130 @@ + + + + + + + + + + + + + + image/svg+xml + + + + + + + + application-x-executable + + + + + + + + + + + + + + + + diff --git a/data/icons/hicolor/symbolic/apps/com.fryzekconcepts.weegtk-symbolic.svg b/data/icons/hicolor/symbolic/apps/com.fryzekconcepts.weegtk-symbolic.svg new file mode 100644 index 0000000..0444828 --- /dev/null +++ b/data/icons/hicolor/symbolic/apps/com.fryzekconcepts.weegtk-symbolic.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/data/icons/meson.build b/data/icons/meson.build new file mode 100644 index 0000000..d850b9c --- /dev/null +++ b/data/icons/meson.build @@ -0,0 +1,13 @@ +application_id = 'com.fryzekconcepts.weegtk' + +scalable_dir = 'hicolor' / 'scalable' / 'apps' +install_data( + scalable_dir / ('@0@.svg').format(application_id), + install_dir: get_option('datadir') / 'icons' / scalable_dir +) + +symbolic_dir = 'hicolor' / 'symbolic' / 'apps' +install_data( + symbolic_dir / ('@0@-symbolic.svg').format(application_id), + install_dir: get_option('datadir') / 'icons' / symbolic_dir +) diff --git a/data/meson.build b/data/meson.build new file mode 100644 index 0000000..0196aa7 --- /dev/null +++ b/data/meson.build @@ -0,0 +1,46 @@ +desktop_file = i18n.merge_file( + input: 'com.fryzekconcepts.weegtk.desktop.in', + output: 'com.fryzekconcepts.weegtk.desktop', + type: 'desktop', + po_dir: '../po', + install: true, + install_dir: get_option('datadir') / 'applications' +) + +desktop_utils = find_program('desktop-file-validate', required: false) +if desktop_utils.found() + test('Validate desktop file', desktop_utils, args: [desktop_file]) +endif + +appstream_file = i18n.merge_file( + input: 'com.fryzekconcepts.weegtk.metainfo.xml.in', + output: 'com.fryzekconcepts.weegtk.metainfo.xml', + po_dir: '../po', + install: true, + install_dir: get_option('datadir') / 'metainfo' +) + +appstreamcli = find_program('appstreamcli', required: false, disabler: true) +test('Validate appstream file', appstreamcli, + args: ['validate', '--no-net', '--explain', appstream_file]) + +install_data('com.fryzekconcepts.weegtk.gschema.xml', + install_dir: get_option('datadir') / 'glib-2.0' / 'schemas' +) + +compile_schemas = find_program('glib-compile-schemas', required: false, disabler: true) +test('Validate schema file', + compile_schemas, + args: ['--strict', '--dry-run', meson.current_source_dir()]) + + +service_conf = configuration_data() +service_conf.set('bindir', get_option('prefix') / get_option('bindir')) +configure_file( + input: 'com.fryzekconcepts.weegtk.service.in', + output: 'com.fryzekconcepts.weegtk.service', + configuration: service_conf, + install_dir: get_option('datadir') / 'dbus-1' / 'services' +) + +subdir('icons') -- cgit