From d80119285dccdab5f0675dba9edad6a3637b0ccf Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Tue, 31 Jul 2007 16:29:26 +0000 Subject: add oh-puzzles, the Opened Hand Puzzles Collection (taken from Poky) --- packages/puzzles/oh-puzzles_svn.bb | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 packages/puzzles/oh-puzzles_svn.bb (limited to 'packages/puzzles/oh-puzzles_svn.bb') 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 < ${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/*" + -- cgit v1.2.3 From de7ec2487e46e7ff12950717d7e575c6b8301c96 Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Tue, 31 Jul 2007 20:10:18 +0000 Subject: oh-puzzles: add libowl to dependencies [should be done in poky as well] --- packages/puzzles/oh-puzzles_svn.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/puzzles/oh-puzzles_svn.bb') diff --git a/packages/puzzles/oh-puzzles_svn.bb b/packages/puzzles/oh-puzzles_svn.bb index 85d742ce90..67643cb281 100644 --- a/packages/puzzles/oh-puzzles_svn.bb +++ b/packages/puzzles/oh-puzzles_svn.bb @@ -1,16 +1,16 @@ DESCRIPTION = "Portable Puzzle Collection" LICENSE = "MIT" SECTION = "x11" -DEPENDS = "gtk+ gconf intltool-native librsvg" +DEPENDS = "gtk+ gconf intltool-native librsvg libowl" PV = "0.1+svn${SRCDATE}" -PR = "r4" +PR = "r5" inherit autotools pkgconfig SRC_URI = "svn://svn.o-hand.com/repos/;module=oh-puzzles;proto=http" S = "${WORKDIR}/${PN}" -do_install_append () { +do_install_append() { mv ${D}${bindir} ${D}/usr/games install -d ${D}/${datadir}/applications/ -- cgit v1.2.3