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
+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")