Skip to content

Commit

Permalink
Added AppStream support
Browse files Browse the repository at this point in the history
  • Loading branch information
mmatyas committed Feb 27, 2017
1 parent fee6aea commit dfd84f9
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Expand Up @@ -36,8 +36,10 @@ else()
set(DATADIR "${SHAREDIR}/openblok" CACHE STRING "Install location of the data files")
if(UNIX AND NOT APPLE AND NOT CYGWIN)
option(INSTALL_DESKTOPICON "Install desktop shortcut and icon" ON)
option(INSTALL_APPSTREAM "Install AppStream metainfo" ON)
set(ICONDIR "${SHAREDIR}/pixmaps" CACHE STRING "Install location of the icon file")
set(DESKTOPDIR "${SHAREDIR}/applications" CACHE STRING "Install location of the desktop shortcut")
set(APPSTREAMDIR "${SHAREDIR}/metainfo" CACHE STRING "Install location of the AppStream metainfo")
endif()
endif()

Expand Down Expand Up @@ -100,6 +102,9 @@ if(INSTALL_DESKTOPICON)
install(FILES etc/linux/openblok.desktop DESTINATION ${DESKTOPDIR})
install(FILES data/icon.png DESTINATION ${ICONDIR} RENAME openblok.png)
endif()
if(INSTALL_APPSTREAM)
install(FILES etc/linux/openblok.appdata.xml DESTINATION ${APPSTREAMDIR})
endif()


# Package
Expand Down Expand Up @@ -129,4 +134,7 @@ message(STATUS "| - data dir: ${DATADIR}")
if(INSTALL_DESKTOPICON)
message(STATUS "| - shortcut, icon: yes")
endif()
if(INSTALL_APPSTREAM)
message(STATUS "| - appstream: yes")
endif()
message(STATUS "|")
70 changes: 70 additions & 0 deletions etc/linux/openblok.appdata.xml
@@ -0,0 +1,70 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2017 Mátyás Mustoha -->
​<component type="desktop-application">
​ <id>openblok</id>
​ <metadata_license>CC0</metadata_license>
​ <project_license>GPL-3.0+</project_license>
​ <name>OpenBlok</name>
​ <summary>A falling block puzzle game</summary>

​ <description>
​ <p>
​ A customizable, cross platform, open-source falling block game,
packed with a bunch of features.
​ </p>
<p>Gameplay features:</p>
<ul>
<li>Ghost piece support</li>
<li>Hold piece support</li>
<li>Customizable next pieces support</li>
<li>Customizable DAS support</li>
<li>SRS, TGM and Classic rotation</li>
<li>Full wall- and floor kick support</li>
<li>7-piece bag random generator</li>
<li>Classic, Extended and Infinity lock support</li>
<li>Sonic drop and Zangi-move support</li>
<li>T-Spin and Mini T-Spin support</li>
<li>Combo support</li>
<li>Battle mode, Sprint and Ultra</li>
<li>Proper menu, configuration and stats</li>
<li>Gamepad support</li>
<li>Music and sound effects</li>
<li>Big screen, small screen support</li>
<li>Theme support</li>
</ul>

​ </description>

<categories>
<category>Game</category>
<category>BlocksGame</category>
</categories>
​ <screenshots>
​ <screenshot type="default">
​ <caption>Gameplay</caption>
​ <image>https://gitcdn.xyz/repo/mmatyas/openblok/b0491168/etc/promo/screenshot01.png</image>
​ </screenshot>
​ <screenshot>
​ <caption>Main menu</caption>
​ <image>https://gitcdn.xyz/repo/mmatyas/openblok/b0491168/etc/promo/screenshot_mainmenu.png</image>
​ </screenshot>
​ <screenshot>
​ <caption>Multiplayer</caption>
​ <image>https://gitcdn.xyz/repo/mmatyas/openblok/b0491168/etc/promo/screenshot02.png</image>
​ </screenshot>
​ </screenshots>
​ <url type="homepage">https://github.com/mmatyas/openblok</url>

<developer_name>Mátyás Mustoha</developer_name>
<update_contact/>matyas.mustoha_AT_gmail.com</component>
​ <releases>
​ <release version="0.7.0" date="2017-02-27">
​ <description>
​ <p>See https://github.com/mmatyas/openblok/releases/tag/v0.7.0</p>
​ </description>
​ </release>
​ </releases>
​</component>

0 comments on commit dfd84f9

Please sign in to comment.