puzzles: Add desktop files as a new package puzzles-dekstop. Add this to meta-oh + bump PRs
git-svn-id: https://svn.o-hand.com/repos/poky@70 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
parent
3ed2b08a5c
commit
0bba7f888b
|
@ -2,7 +2,7 @@ PACKAGES = "oh-base-depends oh-task-base"
|
|||
# oh-task-base
|
||||
DESCRIPTION = "Meta-package for OpenHand Palmtop Environment"
|
||||
MAINTAINER = "Richard Purdie <richard@openedhand.com>"
|
||||
PR = "r8"
|
||||
PR = "r9"
|
||||
|
||||
ALLOW_EMPTY = "1"
|
||||
|
||||
|
@ -32,6 +32,7 @@ oh-task-base = "\
|
|||
gtk-clearlooks-engine \
|
||||
eds \
|
||||
puzzles \
|
||||
puzzles-dekstop \
|
||||
kf \
|
||||
rxvt-unicode \
|
||||
xhost \
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
PR = "r3"
|
||||
PR = "r4"
|
||||
|
||||
export IMAGE_BASENAME = "oh-image"
|
||||
|
||||
|
|
|
@ -1,17 +1,42 @@
|
|||
|
||||
DEPENDS = "gtk+"
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI = "http://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-${PV}.tar.gz"
|
||||
|
||||
CFLAGS_prepend = " -I./ `${STAGING_BINDIR}/pkg-config gtk+-2.0 --cflags` "
|
||||
do_compile_prepend = " export 'XLDFLAGS=${LDFLAGS} `${STAGING_BINDIR}/pkg-config gtk+-2.0 --libs`'; "
|
||||
|
||||
FILES_${PN} = "usr/games/*"
|
||||
PACKAGES = "${PN} ${PN}-desktop"
|
||||
|
||||
FILES_${PN} = "${prefix}/games/*"
|
||||
FILES_${PN}-desktop = "${datadir}/applications/*"
|
||||
|
||||
do_install () {
|
||||
export prefix=${D}
|
||||
export DESTDIR=${D}
|
||||
install -d ${D}/usr
|
||||
install -d ${D}/usr/games
|
||||
oe_runmake install
|
||||
install -d ${D}/${prefix}
|
||||
install -d ${D}/${prefix}/games
|
||||
oe_runmake install
|
||||
|
||||
install -d ${D}/${datadir}
|
||||
install -d ${D}/${datadir}/applications
|
||||
cd ${D}/${prefix}/games
|
||||
|
||||
for prog in *; do
|
||||
if [ -x $prog ]; then
|
||||
echo "making ${D}/${datadir}/applications/$prog.desktop"
|
||||
cat <<STOP > ${D}/${datadir}/applications/$prog.desktop
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=$prog
|
||||
Exec=${prefix}/games/$prog
|
||||
Icon=game.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Game
|
||||
StartupNotify=true
|
||||
STOP
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue