From d44beade081877eea35f2aac6cfe3c486f9bcc59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 3 Apr 2020 15:43:10 +0700 Subject: [PATCH] bsd-games: s/sed/vsed/ --- srcpkgs/bsd-games/template | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/srcpkgs/bsd-games/template b/srcpkgs/bsd-games/template index 24501b4515f..40a5b226de7 100644 --- a/srcpkgs/bsd-games/template +++ b/srcpkgs/bsd-games/template @@ -39,21 +39,20 @@ patch_args="-Np1" nocross=yes post_extract() { - sed -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 - sed -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 - sed -i "s/it\'s initial/its initial/g" backgammon/teachgammon/ttext1.c - sed -i "s/two player\'s/two players/g" backgammon/teachgammon/ttext2.c - sed -i "s/\.I range/\.It range/g" arithmetic/arithmetic.6 - sed -i "s/game were the/game where the/g" gomoku/gomoku.6 - sed -i 's|/usr/games|/usr/bin|g' wargames/wargames + vsed -i "s/FISH/GO-FISH/g; s/\.Nm fish/\.Nm go-fish/g" fish/fish.6 + vsed -i "s/tenths/tenth/g" tests/number.-0.1 + vsed -i "s/Elegy{ Written in a Country Church{-| }Yard:/Elegy{ Written in a Country Church{-| }Yard}:/g" quiz/datfiles/poetry + vsed -i "s/\.tI friend/\.It friend/g" hunt/hunt/hunt.6.in + vsed -i "s/\.I range/\.It range/g" arithmetic/arithmetic.6 + vsed -i "s/game were the/game where the/g" gomoku/gomoku.6 + vsed -i 's|/usr/games|/usr/bin|g' wargames/wargames - sed -i '1i#include ' banner/banner.c - sed -i 's/getdate/get_date/g' hack/*.[ch] - sed -i '1i#include ' wump/wump.c - sed -i 's/-DOTTO//' hunt/Makeconfig + vsed -i '1i#include ' banner/banner.c + vsed -i 's/getdate/get_date/g' hack/extern.h hack/hack.{end,unix}.c + vsed -i '1i#include ' wump/wump.c + vsed -i 's/-DOTTO//' hunt/Makeconfig } + pre_configure() { cp ${FILESDIR}/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_ldflags='$LDFLAGS'" >>config.params } + do_install() { echo >install-score 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" vlicense COPYING } -