xmoto:add repo

This commit is contained in:
alihanozturk
2017-03-09 21:22:32 +03:00
parent a4b48d93d8
commit 6b23e87dd1
9 changed files with 173 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
<PISI>
<Name>game.sports</Name>
</PISI>
+27
View File
@@ -0,0 +1,27 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
def setup():
shelltools.system("./bootstrap")
shelltools.system("rm -r src/ode")
shelltools.export("CPPFLAGS", "-D_GLIBCXX_USE_CXX11_ABI=0")
autotools.autoreconf("-vfi")
autotools.configure("--prefix=/usr \
--disable-sdltest \
--with-internal-xdg=1")
def build():
autotools.make()
def install():
autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
pisitools.insinto("/usr/share/applications", "extra/xmoto.desktop")
pisitools.insinto("/usr/share/pixmaps", "extra/xmoto.xpm")
@@ -0,0 +1,11 @@
--- extra/xmoto.desktop~ 2012-12-09 00:18:19.396987813 +0100
+++ extra/xmoto.desktop 2012-12-09 00:19:24.114990499 +0100
@@ -4,6 +4,8 @@
Name=Xmoto
GenericName=Motocross game
GenericName[fr_FR]=Jeu de moto
+GenericName[pl]=Gra motokrosowa
+GenericName[tr]=Motokros Oyunu
Icon=xmoto.xpm
Exec=xmoto
Categories=Game;SportsGame;
@@ -0,0 +1,10 @@
--- src/helpers/System.cpp.old 2012-06-12 11:01:24.332083600 +0200
+++ src/helpers/System.cpp 2012-06-12 11:01:35.335083715 +0200
@@ -24,6 +24,7 @@
#include "Log.h"
#include "VExcept.h"
#include <sstream>
+#include <unistd.h>
std::vector<std::string>* System::getDisplayModes(int windowed) {
std::vector<std::string>* modes = new std::vector<std::string>;
+27
View File
@@ -0,0 +1,27 @@
diff -up xmoto-0.5.10/configure.in.lua52 xmoto-0.5.10/configure.in
--- xmoto-0.5.10/configure.in.lua52 2012-05-02 18:08:40.000000000 -0300
+++ xmoto-0.5.10/configure.in 2013-06-22 19:03:13.930669408 -0300
@@ -171,6 +171,7 @@ AC_CHECK_HEADER(lua/lua.h, AC_DEFINE(
AC_CHECK_HEADER(lua50/lua.h, AC_DEFINE(HAVE_LUA50_LUA_H) [USE_LUA_VERSION="5.0"])
AC_CHECK_HEADER(lua51/lua.h, AC_DEFINE(HAVE_LUA51_LUA_H) [USE_LUA_VERSION="5.1"])
AC_CHECK_HEADER(lua5.1/lua.h, AC_DEFINE(HAVE_LUA5_1_LUA_H)[USE_LUA_VERSION="5.1"])
+AC_CHECK_HEADER(lua5.2/lua.h, AC_DEFINE(HAVE_LUA5_2_LUA_H)[USE_LUA_VERSION="5.2"])
AC_DEFINE(LUA_COMPAT_MODULE, 1)
AC_LANG_PUSH([C++])
diff -up xmoto-0.5.10/src/include/xm_lua.h.lua52 xmoto-0.5.10/src/include/xm_lua.h
--- xmoto-0.5.10/src/include/xm_lua.h.lua52 2013-06-22 19:08:07.873274342 -0300
+++ xmoto-0.5.10/src/include/xm_lua.h 2013-06-22 19:08:43.074802543 -0300
@@ -4,7 +4,11 @@ extern "C" {
#include "lauxlib.h"
#include "lualib.h"
#else
- #if defined(HAVE_LUA5_1_LUA_H)
+ #if defined(HAVE_LUA5_2_LUA_H)
+ #include <lua5.2/lua.h>
+ #include <lua5.2/lauxlib.h>
+ #include <lua5.2/lualib.h>
+ #elif defined(HAVE_LUA5_1_LUA_H)
#include <lua5.1/lua.h>
#include <lua5.1/lauxlib.h>
#include <lua5.1/lualib.h>
+14
View File
@@ -0,0 +1,14 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
Name=X-Moto
Name[tr]=X-Moto
GenericName=Motocross Game
GenericName[tr]=Motokros Oyunu
Icon=xmoto
Exec=xmoto
Terminal=false
StartupNotify=false
Categories=Application;Game;SportsGame;
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.7 KiB

+71
View File
@@ -0,0 +1,71 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>xmoto</Name>
<Homepage>http://xmoto.tuxfamily.org/</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2</License>
<Icon>xmoto</Icon>
<IsA>app:gui</IsA>
<Summary>Motorcross game</Summary>
<Description>A motocross game with fancy effects like ghost replay. Requires a 3D accelerated video card.</Description>
<Archive sha1sum="a795616fb359e60be343e339f7acf5e95e0f1ce2" type="targz">http://download.tuxfamily.org/xmoto/xmoto/0.5.11/xmoto-0.5.11-src.tar.gz</Archive>
<BuildDependencies>
<Dependency>libxml2-devel</Dependency>
<Dependency>curl-devel</Dependency>
<Dependency>libsdl-devel</Dependency>
<Dependency>sdl-mixer-devel</Dependency>
<Dependency>sdl-ttf-devel</Dependency>
<Dependency>sdl-net-devel</Dependency>
<Dependency>lua51-devel</Dependency>
<Dependency>zlib-devel</Dependency>
<Dependency>libpng-devel</Dependency>
<Dependency>ode-devel</Dependency>
<Dependency>sqlite-devel</Dependency>
<Dependency>mesa-devel</Dependency>
<Dependency>mesa-glu-devel</Dependency>
<Dependency>libjpeg-turbo-devel</Dependency>
</BuildDependencies>
<Patches>
<!-- <Patch level="0">xmoto-0.5.10-gcc47.patch</Patch> -->
<Patch level="0">genericname_pl-tr.patch</Patch>
</Patches>
</Source>
<Package>
<Name>xmoto</Name>
<RuntimeDependencies>
<Dependency>libsdl</Dependency>
<Dependency>sdl-mixer</Dependency>
<Dependency>sdl-ttf</Dependency>
<Dependency>sdl-net</Dependency>
<Dependency>lua</Dependency>
<Dependency>ode</Dependency>
<Dependency>mesa</Dependency>
<Dependency>mesa-glu</Dependency>
<Dependency>libjpeg-turbo</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="data">/usr/share/applications</Path>
<Path fileType="localedata">/usr/share/locale</Path>
<Path fileType="man">/usr/share/man</Path>
<Path fileType="data">/usr/share/pixmaps</Path>
<Path fileType="data">/usr/share/xmoto</Path>
</Files>
</Package>
<History>
<Update release="1">
<Date>2017-03-09</Date>
<Version>0.5.11</Version>
<Comment>First release</Comment>
<Name>Alihan Öztürk</Name>
<Email>alihan@pisilinux.org</Email>
</Update>
</History>
</PISI>
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>xmoto</Name>
<Summary xml:lang="tr">Motokros oyunu</Summary>
<Summary xml:lang="pl">Motocrossowa gra platformowa</Summary>
<Description xml:lang="tr">Gölge tekrarlama gibi güzel özellikleri olan motokros yarışı. 3B hızlandırıcılı ekran kartı gerektirir</Description>
<Description xml:lang="pl">X-Moto jest wyzywającą motocrossową dwuwymiarową grą platformową, gdzie fizyka ma w rozgrywce główną rolę. Panowanie nad motorem musi być jak najbardziej wyżyłowane, jeżeli chce się myśleć o ukończeniu trudniejszych poziomów.</Description>
</Source>
</PISI>