summaryrefslogtreecommitdiffstats
path: root/extra/xmoto/Pkgfile
blob: e8c832e5ae5f6db3d3211ef80d200a4a1aa0984f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Description: Jeu de simulation de motocross en 2D
# URL: http://xmoto.tuxfamily.org
# Maintainer: NuTyX core team
# Packager: charles dot rapenne at gmail dot com
# Depends on: libxdg-basedir, ode, libjpeg, libpng, zlib, bzip2, sdl, sdl_ttf, curl, lua, sdl_mixer, sdl_net, sqlite3
# Run on: libxdg-basedir,ode,libjpeg,libpng,zlib,bzip2,sdl,sdl_ttf,curl,lua,sdl_mixer,sdl_net,sqlite3

name=xmoto
version=0.5.3
release=1

source=(http://download.tuxfamily.org/xmoto/xmoto/0.5.3/$name-$version-src.tar.gz 
	xmoto.desktop
	libpng-14.patch)

build() {

	mkdir -p $PKG/usr/share/pixmaps/ $PKG/usr/share/applications/

	cd $name-$version
	patch -Np1 -i $SRC/libpng-14.patch

        ./configure --prefix=/usr
        make
        make DESTDIR=$PKG install

	install -m 644 ../xmoto.desktop $PKG/usr/share/applications/
	install -m 644 extra/xmoto.xpm $PKG/usr/share/pixmaps/

}