summaryrefslogtreecommitdiff
path: root/packages/puzzles
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2007-07-31 16:29:26 +0000
committerMichael Lauer <mickey@vanille-media.de>2007-07-31 16:29:26 +0000
commitd80119285dccdab5f0675dba9edad6a3637b0ccf (patch)
tree5d116bd4d055022fefbc20f7e2e15efcb2a6a4ea /packages/puzzles
parent6bd781d384bb0741999927087ece0c58b85b57fc (diff)
add oh-puzzles, the Opened Hand Puzzles Collection (taken from Poky)
Diffstat (limited to 'packages/puzzles')
-rw-r--r--packages/puzzles/oh-puzzles_svn.bb43
1 files changed, 43 insertions, 0 deletions
diff --git a/packages/puzzles/oh-puzzles_svn.bb b/packages/puzzles/oh-puzzles_svn.bb
new file mode 100644
index 0000000000..85d742ce90
--- /dev/null
+++ b/packages/puzzles/oh-puzzles_svn.bb
@@ -0,0 +1,43 @@
+DESCRIPTION = "Portable Puzzle Collection"
+LICENSE = "MIT"
+SECTION = "x11"
+DEPENDS = "gtk+ gconf intltool-native librsvg"
+PV = "0.1+svn${SRCDATE}"
+PR = "r4"
+
+inherit autotools pkgconfig
+
+SRC_URI = "svn://svn.o-hand.com/repos/;module=oh-puzzles;proto=http"
+S = "${WORKDIR}/${PN}"
+
+do_install_append () {
+ mv ${D}${bindir} ${D}/usr/games
+
+ install -d ${D}/${datadir}/applications/
+
+ cd ${D}/${prefix}/games
+ for prog in *; do
+ if [ -x $prog ]; then
+ # Convert prog to Title Case
+ title=$(echo $prog | sed 's/\(^\| \)./\U&/g')
+ echo "making ${D}/${datadir}/applications/$prog.desktop"
+ cat <<STOP > ${D}/${datadir}/applications/$prog.desktop
+[Desktop Entry]
+Encoding=UTF-8
+Name=$title
+Exec=${prefix}/games/$prog
+Icon=applications-games
+Terminal=false
+Type=Application
+Categories=Game
+StartupNotify=true
+SingleInstance=true
+Comment=Play $title.
+STOP
+ fi
+ done
+}
+
+FILES_${PN} += "${prefix}/games/*"
+FILES_${PN}-dbg += "${prefix}/games/.debug/*"
+