summaryrefslogtreecommitdiff
path: root/recipes/numptyphysics/numptyphysics_svn.bb
blob: 7c019e46882fe417231695665579268ec331eac9 (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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
DESCRIPTION = "Numpty Physics is a drawing puzzle game in the spirit (and style?) \
of Crayon Physics using the same excellent Box2D engine."
DEPENDS = "virtual/libsdl libsdl-image libpng"
RDEPENDS += "libpng"
LICENSE = "GPL"
HOMEPAGE = "http://numptyphysics.garage.maemo.org/"
SECTION = "x11/games"
SRCREV = "109"
PV = "0.2+svnr${SRCPV}"
PR = "r2"

inherit autotools

SRC_URI = "\
# Maemo garage is sadly only available with https. Can make you trouble while fetching without accepting the certificate.
  svn://vcs.maemo.org/svn/${PN};module=trunk;proto=https \
  http://wwwpub.zih.tu-dresden.de/~mkluge/numptyphysics_setup.tgz \
  file://replay_off.patch;apply=yes;striplevel=0 \
  file://next.png \
  file://keyb.patch;apply=yes;striplevel=0 \
  file://keyb.png \
  file://faster.patch;apply=yes;striplevel=0 \
  file://numptyphysics.desktop \
"
S = "${WORKDIR}/trunk"

EXTRA_S = "${WORKDIR}/local/packages/numptyphysics"

do_configure_append() {
  mv ../next.png data
  mv ../keyb.png data
}

do_install_append() {
        install -d ${D}${datadir}/numptyphysics
        install -d ${D}${datadir}/pixmaps
        install -d ${D}${datadir}/applications
        install -m 0644 ${EXTRA_S}/star.png ${D}${datadir}/pixmaps
        install -m 0644 ../numptyphysics.desktop ${D}/${datadir}/applications
        cp -a ${EXTRA_S}/data/* data/keyb.png ${D}/${datadir}/numptyphysics/
}

FILES_${PN} += "${datadir}"

SRC_URI[md5sum] = "24a031f628cc91825bb80ee2aaa21b77"
SRC_URI[sha256sum] = "3a60d6a6327f3ad8653e1de5dbf5c36f2a591d409d3e3ae7f6c84d25dbc3e7da"