From 1ffc6d550aa77751f4f6a354c2137993f9a59b6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sat, 2 Jan 2016 11:10:09 +0100 Subject: [PATCH] New package: frotz-2.44 Closes #3128 --- srcpkgs/frotz/template | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/frotz/template diff --git a/srcpkgs/frotz/template b/srcpkgs/frotz/template new file mode 100644 index 00000000000..2390454ee7c --- /dev/null +++ b/srcpkgs/frotz/template @@ -0,0 +1,32 @@ +# Template file for 'frotz' +pkgname=frotz +version=2.44 +revision=1 +build_style=gnu-makefile +make_build_target="frotz dfrotz" +make_install_target="install install_dumb" +makedepends="ncurses-devel" +short_desc="Infocom-style interactive fiction player for Unix and DOS" +maintainer="Diogo Leal " +license="GPL-2" +homepage="http://frotz.sourceforge.net/" +distfiles="https://github.com/DavidGriffith/frotz/archive/${version}.tar.gz" +checksum=dbb5eb3bc95275dcb984c4bdbaea58bc1f1b085b20092ce6e86d9f0bf3ba858f + + +pre_build() { + sed -i Makefile \ + -e "s;^CC = .*;CC = $CC;" \ + -e "s;^OPTS = .*;OPTS = $CFLAGS;" \ + -e 's;^PREFIX = .*;PREFIX = /usr;' \ + -e 's;^MAN_PREFIX = .*;MAN_PREFIX = /usr/share;' \ + -e 's; $(PREFIX)/bin; $(DESTDIR)/$(PREFIX)/bin;' \ + -e 's; $(MAN_PREFIX)/man; $(DESTDIR)/$(MAN_PREFIX)/man;' \ + -e 's;\($(CC) -o $(BINNAME)$(EXTENSION)\);\1 $(LDFLAGS);' \ + -e 's;\($(CC) -o d$(BINNAME)$(EXTENSION)\);\1 $(LDFLAGS);' +} + +post_install() { + vdoc README + vdoc SPEECH +}