parent
8cb24910b6
commit
1ffc6d550a
1 changed files with 32 additions and 0 deletions
32
srcpkgs/frotz/template
Normal file
32
srcpkgs/frotz/template
Normal file
|
@ -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 <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
|
||||||
|
}
|
Loading…
Reference in a new issue