bsd-games: configure DESTDIR by config.params

This commit is contained in:
Đoàn Trần Công Danh 2020-04-03 16:40:28 +07:00 committed by Juan RP
parent d44beade08
commit cb9ea6e2e0
2 changed files with 1 additions and 2 deletions

View file

@ -1,5 +1,4 @@
bsd_games_cfg_non_interactive=y
bsd_games_cfg_install_prefix=PKGDIR
bsd_games_cfg_no_build_dirs='fortune factor wtf monop dm'
bsd_games_cfg_gamesdir=/usr/bin
bsd_games_cfg_sbindir=/usr/bin

View file

@ -59,11 +59,11 @@ pre_configure() {
echo "bsd_games_cfg_cxx='$CXX'" >>config.params
echo "bsd_games_cfg_other_cflags='$CFLAGS'" >>config.params
echo "bsd_games_cfg_other_ldflags='$LDFLAGS'" >>config.params
echo "bsd_games_cfg_install_prefix='$DESTDIR'" >>config.params
}
do_install() {
echo >install-score
sed -i "s|PKGDIR|$DESTDIR|g" hide-game install-man install-score Makeconfig subst.sed
make install
# Remove conflict with fish-shell