bsd-games: s/sed/vsed/

This commit is contained in:
Đoàn Trần Công Danh 2020-04-03 15:43:10 +07:00 committed by Juan RP
parent 02d04795e5
commit d44beade08

View file

@ -39,21 +39,20 @@ patch_args="-Np1"
nocross=yes nocross=yes
post_extract() { post_extract() {
sed -i "s/FISH/GO-FISH/g; s/\.Nm fish/\.Nm go-fish/g" fish/fish.6 vsed -i "s/FISH/GO-FISH/g; s/\.Nm fish/\.Nm go-fish/g" fish/fish.6
sed -i "s/tenths/tenth/g" tests/number.-0.1 vsed -i "s/tenths/tenth/g" tests/number.-0.1
sed -i "s/Elegy{ Written in a Country Church{-| }Yard:/Elegy{ Written in a Country Church{-| }Yard}:/g" quiz/datfiles/poetry vsed -i "s/Elegy{ Written in a Country Church{-| }Yard:/Elegy{ Written in a Country Church{-| }Yard}:/g" quiz/datfiles/poetry
sed -i "s/\.tI friend/\.It friend/g" hunt/hunt/hunt.6.in vsed -i "s/\.tI friend/\.It friend/g" hunt/hunt/hunt.6.in
sed -i "s/it\'s initial/its initial/g" backgammon/teachgammon/ttext1.c vsed -i "s/\.I range/\.It range/g" arithmetic/arithmetic.6
sed -i "s/two player\'s/two players/g" backgammon/teachgammon/ttext2.c vsed -i "s/game were the/game where the/g" gomoku/gomoku.6
sed -i "s/\.I range/\.It range/g" arithmetic/arithmetic.6 vsed -i 's|/usr/games|/usr/bin|g' wargames/wargames
sed -i "s/game were the/game where the/g" gomoku/gomoku.6
sed -i 's|/usr/games|/usr/bin|g' wargames/wargames
sed -i '1i#include <sys/types.h>' banner/banner.c vsed -i '1i#include <sys/types.h>' banner/banner.c
sed -i 's/getdate/get_date/g' hack/*.[ch] vsed -i 's/getdate/get_date/g' hack/extern.h hack/hack.{end,unix}.c
sed -i '1i#include <fcntl.h>' wump/wump.c vsed -i '1i#include <fcntl.h>' wump/wump.c
sed -i 's/-DOTTO//' hunt/Makeconfig vsed -i 's/-DOTTO//' hunt/Makeconfig
} }
pre_configure() { pre_configure() {
cp ${FILESDIR}/config.params . cp ${FILESDIR}/config.params .
echo "bsd_games_cfg_cc='$CC'" >>config.params echo "bsd_games_cfg_cc='$CC'" >>config.params
@ -61,6 +60,7 @@ pre_configure() {
echo "bsd_games_cfg_other_cflags='$CFLAGS'" >>config.params echo "bsd_games_cfg_other_cflags='$CFLAGS'" >>config.params
echo "bsd_games_cfg_other_ldflags='$LDFLAGS'" >>config.params echo "bsd_games_cfg_other_ldflags='$LDFLAGS'" >>config.params
} }
do_install() { do_install() {
echo >install-score echo >install-score
sed -i "s|PKGDIR|$DESTDIR|g" hide-game install-man install-score Makeconfig subst.sed sed -i "s|PKGDIR|$DESTDIR|g" hide-game install-man install-score Makeconfig subst.sed
@ -74,4 +74,3 @@ do_install() {
rm "${DESTDIR}/usr/share/doc/trek.me" rm "${DESTDIR}/usr/share/doc/trek.me"
vlicense COPYING vlicense COPYING
} }