Commit 75209bc5 authored by Vivien Kraus's avatar Vivien Kraus
Browse files

Provide releases and appstream

parent 2c2896b7
Pipeline #125395 failed with stages
in 3 minutes and 2 seconds
# Makefile.am
#
# Copyright (C) 2017, 2018 Vivien Kraus <vivien@planete-kraus.eu>
# Copyright (C) 2017, 2018, 2019 Vivien Kraus <vivien@planete-kraus.eu>
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
......@@ -27,6 +27,7 @@ EXTRA_DIST += m4/gnulib-cache.m4 po/Rules-html
include desktop.am
include version-gen.am
include releases.am
include bootstrapping.am
include program-tests.am
include valgrind.am
......@@ -34,6 +35,7 @@ include standard-files.am
include gitlab-ci.am
include distcheck.am
include indent.am
include appstream.am
include doc/Makefile.am
include src/Makefile.am
include games/Makefile.am
......
# appstream.am
#
# Copyright (C) 2019 Vivien Kraus <vivien@planete-kraus.eu>
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
metainfodir = $(datadir)/metainfo
dist_metainfo_DATA = %reldir%/eu.planete_kraus.Tarot.appdata.xml
EXTRA_DIST += \
%reldir%/eu.planete_kraus.Tarot.appdata.xsl \
%reldir%/eu.planete_kraus.Tarot.appdata.xml.in
$(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml.in: releases.xml %reldir%/eu.planete_kraus.Tarot.appdata.xsl config.h
$(XSLTPROC) --stringparam largeiconsdir $(largeiconsdir) \
$(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xsl \
$(srcdir)/releases.xml \
| $(XMLLINT) --format - \
> $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml.in
$(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml: %reldir%/eu.planete_kraus.Tarot.appdata.xml.in
@cp $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml.in $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml
$(AM_V_GEN) for locale in $$(cat $(srcdir)/po/LINGUAS) ; \
do \
$(MSGFMT) --xml $(srcdir)/po/$$locale.po --template $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml \
-o $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml-t \
-l $$locale; \
mv $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml-t \
$(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml ; \
done
@grep '<!--Copyright' $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml.in \
>> $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml
$(APPSTREAM_UTIL) validate-strict $(srcdir)/%reldir%/eu.planete_kraus.Tarot.appdata.xml
......@@ -52,6 +52,7 @@ PKG_INSTALLDIR
AM_MISSING_PROG([FDP], [fdp])
AM_MISSING_PROG([HELP2MAN], [help2man])
AM_MISSING_PROG([GLIB_COMPILE_RESOURCES], [glib-compile-resources])
AM_MISSING_PROG([APPSTREAM_UTIL], [appstream-util])
# Checks for libraries.
gl_INIT
......
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:param name="largeiconsdir" />
<xsl:output method="xml" indent="no"/>
<xsl:strip-space elements="*" />
<xsl:template match="releases">
<xsl:comment>Copyright (C) 2019 Vivien Kraus</xsl:comment>
<component>
<id>eu.planete_kraus.Tarot</id>
<metadata_license>CC0-1.0</metadata_license>
<name>The Amazing Rules Of TAROT</name>
<summary>Play a game of Tarot against the artificial intelligence</summary>
<icon type="local"><xsl:value-of select="$largeiconsdir" />/eu.planete_kraus.Tarot.png</icon>
<description>
<p>
Tarot is a popular card game, in which a strong player plays
against the three others. This application lets you play against
the AI.
</p>
</description>
<url type="homepage">https://play-tarot.frama.io/tarot</url>
<!-- <url type="help">https://play-tarot.frama.io/tarot/share/doc/tarot/tarot.html/index.html</url> -->
<!-- <url type="contact">mailto://vivien@planete-kraus.eu</url> -->
<screenshots>
<screenshot type="default">
<caption>Playing tarot against the AI</caption>
<image type="source">https://framagit.org/play-tarot/tarot/raw/develop/screenshots/tarot.png</image>
</screenshot>
</screenshots>
<launchable type="desktop-id">eu.planete_kraus.Tarot.desktop</launchable>
<releases>
<xsl:apply-templates />
</releases>
<provides>
<binary>tarot</binary>
</provides>
<project_license>GPL-3.0+</project_license>
<developer_name>Vivien Kraus</developer_name>
<update_contact>vivien@planete_kraus.eu</update_contact>
<translation type="gettext">tarot</translation>
<content_rating type="oars-1.0" />
</component>
</xsl:template>
<xsl:template match="release">
<release version="{@version}"
date="{@date}"
urgency="medium">
<xsl:apply-templates />
</release>
</xsl:template>
<xsl:template match="summary">
<p>
<xsl:apply-templates />
</p>
</xsl:template>
<xsl:template match="description">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="p">
<p>
<xsl:apply-templates />
</p>
</xsl:template>
<xsl:template match="ol">
<ol>
<xsl:apply-templates />
</ol>
</xsl:template>
<xsl:template match="ul">
<ul>
<xsl:apply-templates />
</ul>
</xsl:template>
<xsl:template match="li">
<li>
<xsl:apply-templates />
</li>
</xsl:template>
</xsl:stylesheet>
#!/bin/sh
echo '<?xml version="1.0" encoding="utf-8"?>'
echo '<releases>'
for tag in $(git tag --sort=taggerdate | tac)
do
TAG_CHARS=$(echo "$tag" | wc -c)
TAG_HEADER=$(git tag -n $tag | tail -c +$TAG_CHARS | sed 's/\.[[:space:]]$//g')
TAG_DATE=$(git log -1 --format=%ai $tag)
TAG_AUTHOR=$(git log -1 --format=%an $tag)
TAG_EMAIL=$(git log -1 --format=%ae $tag)
echo "#+title: $TAG_HEADER" > tag.org
echo "#+date: $TAG_DATE" >> tag.org
echo "#+author: $TAG_AUTHOR" >> tag.org
echo "#+email: $TAG_EMAIL" >> tag.org
git tag -n999 $tag | tail -n +2 >> tag.org
emacs --batch --file tag.org --eval "(org-html-export-to-html nil nil nil t '())" || exit 1
echo " <release version=\"$(echo $tag | tail -c +2)\" date=\"$TAG_DATE\">"
echo " <summary>"
echo "$TAG_HEADER"
echo " </summary>"
echo " <description>"
cat tag.html
echo " </description>"
echo " </release>"
rm tag.org tag.html
done
echo '</releases>'
......@@ -10,4 +10,5 @@ src/gui/window.ui
src/gui/widget.vala
src/gui/widget.ui
src/gui/card_view.vala
src/cairo/card_painter_default.vala
\ No newline at end of file
src/cairo/card_painter_default.vala
eu.planete_kraus.Tarot.appdata.xml.in
\ No newline at end of file
......@@ -8,8 +8,8 @@ msgid ""
msgstr ""
"Project-Id-Version: tarot 0.4.2.83-ebdc-dirty\n"
"Report-Msgid-Bugs-To: vivien@planete-kraus.eu\n"
"POT-Creation-Date: 2019-03-25 23:19+0100\n"
"PO-Revision-Date: 2019-03-25 23:20+0100\n"
"POT-Creation-Date: 2019-04-06 22:32+0200\n"
"PO-Revision-Date: 2019-04-06 22:33+0200\n"
"Last-Translator: Vivien Kraus <vivien@planete-kraus.eu>\n"
"Language-Team: French\n"
"Language: fr\n"
......@@ -1410,6 +1410,31 @@ msgstr " D"
msgid "K"
msgstr " R"
#: eu.planete_kraus.Tarot.appdata.xml.in:6
msgid "The Amazing Rules Of TAROT"
msgstr "Jouer au tarot"
#: eu.planete_kraus.Tarot.appdata.xml.in:9
msgid "Play a game of Tarot against the artificial intelligence"
msgstr "Jouer une partie de tarot contre l'intelligence artificielle"
#: eu.planete_kraus.Tarot.appdata.xml.in:14
msgid ""
"Tarot is a popular card game, in which a strong player plays against the "
"three others. This application lets you play against the AI."
msgstr ""
"Le tarot est un jeu de cartes populaire, dans lequel un joueur plus\n"
"fort joue contre les trois autres. Cette application vous permet de\n"
"jouer contre l'IA."
#: eu.planete_kraus.Tarot.appdata.xml.in:23
msgid "Playing tarot against the AI"
msgstr "Jouer au tarot contre l'IA"
#: eu.planete_kraus.Tarot.appdata.xml.in:407
msgid "Vivien Kraus"
msgstr "Vivien Kraus"
#~ msgid "Slam!"
#~ msgstr "Chelem !"
......
# releases.am
#
# Copyright (C) 2017, 2018 Vivien Kraus <vivien@planete-kraus.eu>
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see
# <http://www.gnu.org/licenses/>.
EXTRA_DIST += releases.xml
MAINTAINERCLEANFILES += releases.xml
dist_noinst_SCRIPTS += gen-releases
$(srcdir)/releases.xml:
$(AM_V_GEN) $(top_srcdir)/gen-releases | $(XMLLINT) --format - > $(srcdir)/releases.xml
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