30_installation-instructions_gentoo.sh 904 Bytes
Newer Older
1 2 3 4 5
# print installation instructions for Gentoo Linux
# USAGE: print_instructions_gentoo $pkg[…]
print_instructions_gentoo() {
	local pkg_path
	local str_format
6
	local str_comment
7
	printf 'quickunpkg --'
8 9 10 11 12
	for pkg in "$@"; do
		if [ "$OPTION_ARCHITECTURE" != all ] && [ -n "${PACKAGES_LIST##*$pkg*}" ]; then
			skipping_pkg_warning 'print_instructions_gentoo' "$pkg"
			return 0
		fi
13
		pkg_path="$(get_value "${pkg}_PKG")"
14 15 16 17 18 19 20
		if [ -z "${pkg_path##* *}" ]; then
			str_format=' "%s"'
		else
			str_format=' %s'
		fi
		printf "$str_format" "$pkg_path"
	done
21 22
	case "${LANG%_*}" in
		('fr')
23
			str_comment='ou mettez les paquets dans un PKGDIR (dans un dossier nommé games-playit) et emergez-les'
24 25
		;;
		('en'|*)
26
			str_comment='or put the packages in a PKGDIR (in a folder named games-playit) and emerge them'
27 28 29
		;;
	esac
	printf ' # %s %s\n' 'https://www.dotslashplay.it/ressources/gentoo/' "$str_comment"
30 31
}