aboutsummaryrefslogtreecommitdiff
path: root/recipes/puzzles/stppc2x_svn.bb
blob: 8e6d4f29445b441f69d2d6a07550402c9d451089 (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
DESCRIPTION = "stppc2x is an SDL port of Simon Tatham's Portable Puzzle Collection"
LICENSE = "GPLv2"

DEPENDS = "virtual/libsdl libsdl-image libsdl-ttf"
RDEPENDS_${PN} = "ttf-dejavu-sans-condensed"

SRCREV = "185"
PV = "1.0+svnr${SRCPV}"
PR = "r1"

FILES_${PN} = "/usr/bin /usr/share"

SRC_URI = "svn://stppc2x.googlecode.com/svn/;module=trunk;proto=http \
	   file://stppc2x-extras.tar.gz \
	   file://no-upper-mem.patch \
	   file://generic-keys.patch \
	   file://no-music.patch \
	   file://enable-fullscreen.patch \
	   file://dir-fix.patch \
	   file://stppc2x.desktop \
	   file://stppc2x.png \
	   file://Makefile"

S = "${WORKDIR}/trunk"

do_configure() {
	mv ${WORKDIR}/Makefile ${S}
	mv ${WORKDIR}/extras/help/* ${S}/help
	mv ${WORKDIR}/extras/images/* ${S}/images
}

do_install() {
	oe_runmake install DESTDIR=${D}

	install -m 0644 ${WORKDIR}/stppc2x.png ${D}${datadir}/pixmaps
	install -m 0644 ${WORKDIR}/stppc2x.desktop ${D}${datadir}/applications
}