# the following install needed or else `scons install` failes
# glob2 site bug #22408
install -d $INSTALL_ROOT/usr/share/games/$SPELL/data/zik &&

scons install &&

# New version doesn't properly create ~/.glob2/data.
# glob2 site bug #22412
mv $INSTALL_ROOT/usr/games/$SPELL $INSTALL_ROOT/usr/games/$SPELL-bin &&
cp $SCRIPT_DIRECTORY/$SPELL.sh $INSTALL_ROOT/usr/games/$SPELL &&
chmod 750 $INSTALL_ROOT/usr/games/${SPELL}* &&
chown root:games $INSTALL_ROOT/usr/games/${SPELL}* &&

# Now, setup the modes correctly
cd $INSTALL_ROOT/usr/share/games/$SPELL &&
find_and_scam
