void-packages/srcpkgs/frotz/template

34 lines
1.0 KiB
Bash

# Template file for 'frotz'
pkgname=frotz
version=2.44
revision=3
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.0-or-later"
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;^CONFIG_DIR = .*;CONFIG_DIR = /etc;' \
-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
}