-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
move stuff around for easier packaging, introduce setup.py, desktop f…
…ile, a temp icon and an appdata file
- Loading branch information
Toms Bauģis
committed
Jan 18, 2015
1 parent
e7766f1
commit 9572263
Showing
23 changed files
with
247 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
*.py[cod] | ||
|
||
build/ | ||
dist/ | ||
apx.egg-info | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Empty file.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- Copyright 2013 First Lastname <your@email.com> --> | ||
<component type="desktop"> | ||
<id>apx.desktop</id> | ||
<metadata_license>CC0-1.0</metadata_license> | ||
<project_license>MIT</project_license> | ||
<name>apx</name> | ||
<summary>A playful QIX clone</summary> | ||
<description> | ||
<p> | ||
APX is a QIX clone with minor differences in gameplay from the original. | ||
</p> | ||
<ul> | ||
<li> | ||
Use arrow keys to move around the perimeter of square, hold down Space or Shift | ||
to cut into the area. Connect back to perimeter to claim the area. | ||
</li> | ||
<li> | ||
Your objective is to claim 75% or more to proceed to the next level | ||
</li> | ||
<li> | ||
Claiming with Shift key will be slower but give you double the points. | ||
</li> | ||
<li> | ||
For every claimed full percent over 75% you get extra 1000 points. | ||
</li> | ||
</ul> | ||
</description> | ||
<screenshots> | ||
<screenshot type="default"> | ||
<image>https://farm8.staticflickr.com/7434/13823878335_e242ac1c23_o.png</image> | ||
<caption>APX gameplay</caption> | ||
</screenshot> | ||
</screenshots> | ||
<url type="homepage">https://github.com/projecthamster/apx</url> | ||
<updatecontact>toms.baugis@gmail.com</updatecontact> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[Desktop Entry] | ||
Version=1.0 | ||
Type=Application | ||
Terminal=false | ||
Name=APX | ||
Comment=APX - a QIX clone | ||
Icon=/usr/share/apx/icons/apx.svg | ||
Exec=/usr/bin/apx | ||
Categories=GNOME;GTK;Games; |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/usr/bin/env %{__python2} | ||
# - coding: utf-8 - | ||
import distutils.command.install | ||
import os | ||
import platform | ||
import sys | ||
|
||
from setuptools import setup | ||
|
||
DATADIR = os.path.join(sys.prefix, "share", "apx") | ||
class install(distutils.command.install.install): | ||
|
||
def finalize_options(self): | ||
special_cases = ('debian', 'ubuntu') | ||
if (platform.system() == 'Linux' and | ||
platform.linux_distribution()[0].lower() in special_cases): | ||
# Maintain an explicit install-layout, but use deb by default | ||
specified_layout = getattr(self, 'install_layout', None) | ||
self.install_layout = specified_layout or 'deb' | ||
|
||
distutils.command.install.install.finalize_options(self) | ||
|
||
|
||
|
||
setup( | ||
name = "apx", | ||
version = "0.1", | ||
author = "Toms Bauģis", | ||
author_email = "toms.baugis@gmail.com", | ||
description = "A playful QIX clone.", | ||
license = "MIT", | ||
keywords = "game arcade python", | ||
url = "https://github.com/projecthamster/apx", | ||
long_description=open(os.path.join(os.path.dirname(__file__), 'README.md')).read(), | ||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
"Environment :: X11 Applications :: GTK", | ||
"Intended Audience :: End Users/Desktop", | ||
"Topic :: Games/Entertainment", | ||
"License :: OSI Approved :: MIT License", | ||
], | ||
|
||
|
||
packages=['apx', 'apx.lib'], | ||
scripts=['bin/apx'], | ||
data_files= [ | ||
('share/apx/icons', ['data/apx.svg']), | ||
('share/fonts/04b03', ['data/04b03.ttf', 'data/04b03_LICENSE',]), | ||
('data', ['data/apx.sqlite']), | ||
('share/appdata', ['data/apx.appdata.xml']), | ||
('share/applications', ['data/apx.desktop']), | ||
], | ||
|
||
cmdclass={ | ||
"install": install, | ||
}, | ||
) |