Dungeon text-adventure game %n dungeon %v 2.7B %c * %l * %b * %d * %f ftp.uu.net:/usenet/comp.sources.games/volume12/cdungeon %t cdungeon.tar.gz %w usr.games %% # Copyright 1994 Rickard E. Faith, Kevin E. Martin, and Doug L. Hoffman # All rights reserved. # See the BOGUS.LICENSE file for distribution restrictions. if [ ! -e $BUILDDIR ]; then mkdir -p $BUILDDIR; fi cd $BUILDDIR rm -rf $NAME tar xvzf $SRCTARDIR/$TARFILE cd $NAME patch -p1 -s << 'PATCH_EOF' && --- dungeon/Makefile.orig Sat Jan 29 15:03:12 1994 +++ dungeon/Makefile Wed Jun 22 10:27:46 1994 @@ -4,7 +4,10 @@ BINDIR = /usr/games # Where to install the data file -LIBDIR = /usr/games/lib +LIBDIR = /usr/lib/games + +# Where to install the man page +MANDIR = /usr/man/man6 # The dungeon program provides a ``more'' facility which tries to # figure out how many rows the terminal has. Several mechanisms are @@ -67,8 +70,12 @@ $(CC) $(CFLAGS) -o dungeon $(OBJS) $(LIBS) install: dungeon dtextc.dat - cp dungeon $(BINDIR) - cp dtextc.dat $(LIBDIR) + if [ ! -e $(BINDIR) ]; then mkdir $(BINDIR); fi + install -s -m 0755 dungeon $(BINDIR) + if [ ! -e $(LIBDIR) ]; then mkdir $(LIBDIR); fi + install -m 0644 dtextc.dat $(LIBDIR) + if [ ! -e $(MANDIR) ]; then mkdir $(MANDIR); fi + install -m 0644 dungeon.6 $(MANDIR) clean: rm -f $(OBJS) dungeon dtextc.dat core dsave.dat *~ PATCH_EOF make %doc README * make install exit %% * usr/games/dungeon * usr/lib/games/dtextc.dat * usr/man/man6/dungeon.6