void-packages/srcpkgs/frotz/template

33 lines
1,000 B
Bash
Raw Normal View History

2016-01-02 10:10:09 +00:00
# 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 <diogo@diogoleal.com>"
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
}