#Maintainer: George Vlahavas pkgname=frotz pkgver=2.43 pkgrel=1gv arch=x86_64 source=(http://downloads.sourceforge.net/project/frotz/frotz/$pkgver/frotz-$pkgver.tar.gz) docs=("readme*" "install" "copying" "changelog" "authors" "news" "todo" "bugs" "dumb" "how_to_play" "packaging" "porting" "speech") url=http://frotz.sourceforge.net/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "frotz (A Portable Z-Machine Interpreter)" "The Z-machine is a virtual machine designed by Infocom to run all of" "their text adventures. It went through multiple revisions during the" "lifetime of the company, and two further revisions (V7 and V8) were" "created by Graham Nelson after the company's demise. The specification" "is now quite well documented; this version of Frotz supports version" "1.0." ) build() { cd $startdir/src/$pkgname-$pkgver sed -i -e 's,PREFIX = /usr/local,PREFIX = /usr,' Makefile sed -i -e 's,CONFIG_DIR = /usr/local/etc,CONFIG_DIR = /usr/share/frotz,' Makefile sed -i -e 's,install -d $(PREFIX)/bin,install -d $(DESTDIR)$(PREFIX)/bin,' Makefile sed -i -e 's,install -d $(MAN_PREFIX)/man/man6,install -d $(DESTDIR)$(MAN_PREFIX)/man/man6,' Makefile sed -i -e 's,install -c -m 755 $(BINNAME)$(EXTENSION) $(PREFIX)/bin,install -c -m 755 $(BINNAME)$(EXTENSION) $(DESTDIR)$(PREFIX)/bin,' Makefile sed -i -e 's,install -c -m 644 doc/$(NAME).6 $(MAN_PREFIX)/man/man6,install -c -m 644 doc/$(NAME).6 $(DESTDIR)$(MAN_PREFIX)/man/man6,' Makefile make || return 1 make install DESTDIR=$startdir/pkg }