Skip to content

Commit d2b2adf

Browse files
committed
Add an AppStream file
1 parent 596b9a8 commit d2b2adf

2 files changed

Lines changed: 68 additions & 0 deletions

File tree

me.jtheoof.swappy.metainfo.xml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<component type="desktop">
3+
<id>me.jtheoof.swappy</id>
4+
<metadata_license>CC0-1.0</metadata_license>
5+
<project_license>MIT</project_license>
6+
<name>swappy</name>
7+
<summary>Wayland native snapshot editing tool, inspired by Snappy on macOS</summary>
8+
<icon type="remote" width="128" height="128">https://raw.githubusercontent.com/jtheoof/swappy/596b9a8b17234303a9d4d2ea1d3107cb5442253e/res/icons/hicolor/scalable/apps/swappy.svg</icon>
9+
<description>
10+
<p>A Wayland native snapshot and image editing tool, inspired by Snappy on macOS. Works great with grim, slurp and sway. But can easily work with other screen copy tools that can output a final image to stdout.</p>
11+
</description>
12+
<categories>
13+
<category>Utility</category>
14+
<category>Graphics</category>
15+
</categories>
16+
<keywords>
17+
<keyword>wayland</keyword>
18+
<keyword>snapshot</keyword>
19+
<keyword>annotation</keyword>
20+
<keyword>editing</keyword>
21+
</keywords>
22+
<content_rating type="oars-1.1" />
23+
<url type="homepage">https://github.com/jtheoof/swappy</url>
24+
<url type="help">https://github.com/jtheoof/swappy</url>
25+
<url type="bugtracker">https://github.com/jtheoof/swappy/issues</url>
26+
<url type="translate">https://github.com/jtheoof/swappy?tab=readme-ov-file#i18n</url>
27+
<url type="vcs-browser">https://github.com/jtheoof/swappy</url>
28+
<url type="contribute">https://github.com/jtheoof/swappy?tab=readme-ov-file#contributing</url>
29+
<provides>
30+
<binary>swappy</binary>
31+
<mediatype>image/png</mediatype>
32+
<mediatype>image/jpeg</mediatype>
33+
</provides>
34+
<developer id="io.github.jtheoof">
35+
<name>Jeremy Attali</name>
36+
<url>https://github.com/jtheoof</url>
37+
</developer>
38+
<screenshots>
39+
<screenshot type="default">
40+
<image type="source" width="1347" height="672">https://raw.githubusercontent.com/jtheoof/swappy/596b9a8b17234303a9d4d2ea1d3107cb5442253e/docs/images/screenshot-1.0.0.png</image>
41+
</screenshot>
42+
</screenshots>
43+
<branding>
44+
<color type="primary" scheme_preference="light">#008080</color>
45+
<color type="primary" scheme_preference="dark">#f78a00</color>
46+
</branding>
47+
<releases>
48+
<release version="1.5.1" date="2022-11-20" urgency="low">
49+
<url>https://github.com/jtheoof/swappy/blob/master/CHANGELOG.md#151-2022-11-20</url>
50+
</release>
51+
</releases>
52+
<translation type="gettext">swappy</translation>
53+
</component>

meson.build

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ project(
1111
],
1212
)
1313

14+
application_id = 'me.jtheoof.swappy'
15+
1416
version = '"@0@"'.format(meson.project_version())
1517
git = find_program('git', native: true, required: false)
1618
if git.found()
@@ -42,6 +44,7 @@ pango = dependency('pango')
4244
math = cc.find_library('m')
4345
gtk = dependency('gtk+-3.0', version: '>=3.20.0')
4446
gio = dependency('gio-2.0')
47+
appstream_util = find_program('appstreamcli', required: false)
4548

4649
subdir('res')
4750
subdir('src/po')
@@ -74,6 +77,18 @@ executable(
7477
install: true,
7578
)
7679

80+
app_data_file ='@0@.metainfo.xml'.format(application_id)
81+
# Validate app data file
82+
if appstream_util.found()
83+
test('Validate app data file', appstream_util,
84+
args: ['validate', app_data_file]
85+
)
86+
endif
87+
88+
# Install app data file
89+
install_data(app_data_file, install_dir: get_option('datadir') + '/metainfo')
90+
91+
# Build man pages
7792
scdoc = find_program('scdoc', required: get_option('man-pages'))
7893

7994
if scdoc.found()

0 commit comments

Comments
 (0)