summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/packages/puzzles/files/game.png (renamed from meta/packages/puzzles/puzzles/game.png)bin2168 -> 2168 bytes
-rw-r--r--meta/packages/puzzles/oh-puzzles_svn.bb43
2 files changed, 43 insertions, 0 deletions
diff --git a/meta/packages/puzzles/puzzles/game.png b/meta/packages/puzzles/files/game.png
index 9b74f9fce1..9b74f9fce1 100644
--- a/meta/packages/puzzles/puzzles/game.png
+++ b/meta/packages/puzzles/files/game.png
Binary files differ
diff --git a/meta/packages/puzzles/oh-puzzles_svn.bb b/meta/packages/puzzles/oh-puzzles_svn.bb
new file mode 100644
index 0000000000..7a9a52b619
--- /dev/null
+++ b/meta/packages/puzzles/oh-puzzles_svn.bb
@@ -0,0 +1,43 @@
1DESCRIPTION = "Portable Puzzle Collection"
2LICENSE = "MIT"
3SECTION = "x11"
4DEPENDS = "gtk+"
5PV = "0.1+svn${SRCDATE}"
6
7inherit autotools pkgconfig
8
9SRC_URI = "svn://svn.o-hand.com/repos/;module=oh-puzzles;proto=http \
10 file://game.png"
11
12S = "${WORKDIR}/${PN}"
13
14do_install_append () {
15 mv ${D}${bindir} ${D}/usr/games
16
17 install -d ${D}/${datadir}/applications/
18 install -d ${D}/${datadir}/pixmaps/
19
20 install ${WORKDIR}/game.png ${D}/${datadir}/pixmaps/
21
22 cd ${D}/${prefix}/games
23 for prog in *; do
24 if [ -x $prog ]; then
25 echo "making ${D}/${datadir}/applications/$prog.desktop"
26 cat <<STOP > ${D}/${datadir}/applications/$prog.desktop
27[Desktop Entry]
28Encoding=UTF-8
29Name=$prog
30Exec=${prefix}/games/$prog
31Icon=game.png
32Terminal=false
33Type=Application
34Categories=Game
35StartupNotify=true
36SingleInstance=true
37STOP
38 fi
39 done
40}
41
42FILES_${PN} += "/usr/games/*"
43FILES_${PN}-dbg += "/usr/games/.debug/*"