1 # Template file for 'bsd-games'. Based on Arch PKGBUILD by Chris Brannon.
6 build_style=gnu-configure
8 /var/games/bsdgames/hack 0775 root users
9 /var/games/bsdgames/hack/save 0775 root users
10 /var/games/bsdgames/phantasia 0775 root users"
11 hostmakedepends="flex words-en"
12 makedepends="ncurses-devel"
14 short_desc="A linux port for a collection of BSD command line games"
15 maintainer="Leah Neukirchen <leah@vuxu.org>"
17 homepage="ftp://ftp.ibiblio.org/pub/Linux/games/"
18 distfiles="ftp://ftp.lip6.fr/pub/linux/sunsite/games/${pkgname}-${version}.tar.gz"
19 checksum=066f924aef6c1c5ea946f588e36f303021f5dfc093944738f025d8edbc6fff60
23 sed -i "s/FISH/GO-FISH/g; s/\.Nm fish/\.Nm go-fish/g" fish/fish.6
24 sed -i "s/tenths/tenth/g" tests/number.-0.1
25 sed -i "s/Elegy{ Written in a Country Church{-| }Yard:/Elegy{ Written in a Country Church{-| }Yard}:/g" quiz/datfiles/poetry
26 sed -i "s/\.tI friend/\.It friend/g" hunt/hunt/hunt.6.in
27 sed -i "s/it\'s initial/its initial/g" backgammon/teachgammon/ttext1.c
28 sed -i "s/two player\'s/two players/g" backgammon/teachgammon/ttext2.c
29 sed -i "s/\.I range/\.It range/g" arithmetic/arithmetic.6
30 sed -i "s/game were the/game where the/g" gomoku/gomoku.6
31 sed -i 's|/usr/games|/usr/bin|g' wargames/wargames
33 sed -i '1i#include <sys/types.h>' banner/banner.c
34 sed -i 's/getdate/get_date/g' hack/*.[ch]
35 sed -i '1i#include <fcntl.h>' wump/wump.c
36 sed -i 's/-DOTTO//' hunt/Makeconfig
39 cp ${FILESDIR}/config.params .
40 echo "bsd_games_cfg_cc='$CC'" >>config.params
41 echo "bsd_games_cfg_cxx='$CXX'" >>config.params
42 echo "bsd_games_cfg_other_cflags='$CFLAGS'" >>config.params
43 echo "bsd_games_cfg_other_ldflags='$LDFLAGS'" >>config.params
47 sed -i "s|PKGDIR|$DESTDIR|g" hide-game install-man install-score Makeconfig subst.sed
50 # Remove conflict with fish-shell
51 mv "${DESTDIR}/usr/bin/fish" "${DESTDIR}/usr/bin/go-fish"
52 mv "${DESTDIR}/usr/share/man/man6/fish.6.gz" "${DESTDIR}/usr/share/man/man6/go-fish.6.gz"
54 vdoc "${DESTDIR}/usr/share/doc/trek.me"
55 rm "${DESTDIR}/usr/share/doc/trek.me"