summaryrefslogtreecommitdiff
path: root/vectoroids/vectoroids_1.1.0.oe
blob: 258cf92554a47862a05cebc204a9b610c83d8ab9 (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
DESCRIPTION = "Clone of the classic arcade game Asteroids for Qtopia/Opie - based on SDL"
SECTION = "base"
PRIORITY = "optional"
MAINTAINER = "Michael Lauer <mickey@Vanille.de>"
LICENSE = "GPL"
RDEPENDS = "libqpe1 libsdl"
DEPENDS = "virtual/libc virtual/libqpe virtual/libsdl"

SRC_URI = ftp://ftp.sonic.net/pub/users/nbs/unix/x/${PN}/src/${P}.tar.gz

inherit palmtop

EXTRA_QMAKEVARS_POST="INCLUDEPATH+=${STAGING_INCDIR}/SDL LIBS+=-lSDL LIBS+=-lSDL_mixer LIBS+=-lSDL_image LIBS+=-lpthread CONFIG+=qte"

do_configure_prepend() {
        qmake -project vectoroids.pro
}

do_install() {
        install -d ${D}/opt/QtPalmtop/{bin,apps/Games,pics,share/vectoroids}
        install -D -m 0755 vectoroids ${D}/opt/QtPalmtop/bin/vectoroids
	install -D -m 0644 data/images/icon.png ${D}/opt/QtPalmtop/pics/vectoroids.png
	cp -a data/* ${D}/opt/QtPalmtop/share/vectoroids

	echo "[Desktop Entry]" >${D}/opt/QtPalmtop/apps/Games/vectoroids.desktop
	echo "Comment=Asteroids game" >>${D}/opt/QtPalmtop/apps/Games/vectoroids.desktop
	echo "Exec=vectoroids" >>${D}/opt/QtPalmtop/apps/Games/vectoroids.desktop
	echo "Icon=vectoroids" >>${D}/opt/QtPalmtop/apps/Games/vectoroids.desktop
	echo "Type=Application" >>${D}/opt/QtPalmtop/apps/Games/vectoroids.desktop
	echo "Name=Vectoroids" >>${D}/opt/QtPalmtop/apps/Games/vectoroids.desktop
}