Ucpt:Games-adventure/mmm/mmm-1.0.ebuild
#Download - Bugs - Discussion - History
inherit eutils games
DESCRIPTION="Maniac Mansion Mania Epsiode 1"
SRC_URI="http://maniacmansion.microspace.ch/downloads/mmm01.zip"
HOMEPAGE="http://maniacmansion.microspace.ch/spiele.htm"
SLOT="1"
LICENSE="maniacmansionmania1"
KEYWORDS="x86"
IUSE=""
DEPEND=">=games-engines/ags-bin-2.70"
src_install() {
cd ${WORKDIR}
BINDIR=/usr/games/bin
TITLE=${P}
SHAREDIR=/usr/share/games/${TITLE}
mkdir -p ${D}${BINDIR} ${D}${SHAREDIR}
# first install packaged files
#rmdir ${D}${SHAREDIR}
mv * ${D}${SHAREDIR}
cd ${D}${SHAREDIR}
rm -f winsetup.exe
mv acsetup.cfg acsetup.cfg.pkg
mv MMM.exe ac2game.dat
#mv readme.txt README
#dodoc README
#rm -f README
cat > note.txt << EOF
The load/save dialog, which is acccessible via F5, is somewhat buggy:
If you want to press a button there, you need to click on the upper
border of the button!
EOF
cat > startup.sh << EOF
#!/bin/sh
[ ! -e note_shown ] && xmessage -buttons OK:1,"Don't show this again":0 -file note.txt && touch note_shown
EOF
chmod 755 startup.sh
# startup script
cd ${D}${BINDIR}
ln -s ags-start ${TITLE}
prepgamesdirs
make_desktop_entry ${TITLE} "${DESCRIPTION}"
}
#
# Last modified: Wed, 07 Sep 2005 21:49:00 +1000 Hits: 2,090
Created by NickStallman.net, Luxury Homes Australia
Real estate agents should be using interactive floor plans and list their apartments, townhouses and units.
