2007-04-02 16:00:08 +00:00
|
|
|
DESCRIPTION = "Portable Puzzle Collection"
|
|
|
|
LICENSE = "MIT"
|
|
|
|
SECTION = "x11"
|
2007-05-13 18:21:50 +00:00
|
|
|
DEPENDS = "gtk+ gconf intltool-native librsvg"
|
2007-08-08 15:09:05 +00:00
|
|
|
PV = "0.1+svnr${SRCREV}"
|
2007-08-17 12:54:32 +00:00
|
|
|
PR = "r1"
|
|
|
|
|
|
|
|
bindir = "/usr/games"
|
2007-04-02 16:00:08 +00:00
|
|
|
|
|
|
|
inherit autotools pkgconfig
|
|
|
|
|
2007-08-09 14:19:42 +00:00
|
|
|
SRC_URI = "svn://svn.o-hand.com/repos/;module=oh-puzzles;proto=http \
|
|
|
|
file://oh-puzzles-owl-menu.patch;patch=1;pnum=0"
|
2007-04-02 16:00:08 +00:00
|
|
|
S = "${WORKDIR}/${PN}"
|
|
|
|
|
|
|
|
do_install_append () {
|
|
|
|
install -d ${D}/${datadir}/applications/
|
|
|
|
|
|
|
|
cd ${D}/${prefix}/games
|
|
|
|
for prog in *; do
|
|
|
|
if [ -x $prog ]; then
|
2007-05-17 11:00:45 +00:00
|
|
|
# Convert prog to Title Case
|
2007-06-29 10:23:37 +00:00
|
|
|
title=$(echo $prog | sed 's/\(^\| \)./\U&/g')
|
2007-04-02 16:00:08 +00:00
|
|
|
echo "making ${D}/${datadir}/applications/$prog.desktop"
|
|
|
|
cat <<STOP > ${D}/${datadir}/applications/$prog.desktop
|
|
|
|
[Desktop Entry]
|
|
|
|
Encoding=UTF-8
|
2007-05-17 11:00:45 +00:00
|
|
|
Name=$title
|
2007-04-02 16:00:08 +00:00
|
|
|
Exec=${prefix}/games/$prog
|
2007-04-10 14:15:01 +00:00
|
|
|
Icon=applications-games
|
2007-04-02 16:00:08 +00:00
|
|
|
Terminal=false
|
|
|
|
Type=Application
|
2007-08-17 12:54:32 +00:00
|
|
|
Categories=Game;
|
2007-04-02 16:00:08 +00:00
|
|
|
StartupNotify=true
|
|
|
|
SingleInstance=true
|
2007-07-11 15:38:17 +00:00
|
|
|
Comment=Play $title.
|
2007-04-02 16:00:08 +00:00
|
|
|
STOP
|
|
|
|
fi
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
FILES_${PN} += "/usr/games/*"
|
|
|
|
FILES_${PN}-dbg += "/usr/games/.debug/*"
|