parent
b5b11d1cdd
commit
b431c560aa
@ -1 +1,2 @@
|
||||
DIST steam_1.0.0.74.tar.gz 3604858 BLAKE2B dbe02066d08530378ff922daf8733ad373c0eae9be94479aba94077a0f5c093afc39a95c6770494655af1c33895c981219418f8d4024c391a337d16ec32253c1 SHA512 2a08d9bb6e17a481c577b6aad7d53b51c7d9f6638aaccffc6b9f750dca4a1f9d12c02fd1446c174e979605ef29bdc10fc8249fd97fe79d62934efe26f4ac7369
|
||||
DIST steam_1.0.0.76.tar.gz 3782461 BLAKE2B de38c2604b3fb7a65a25d317718272c607f60e4bedf2efb83eebcf30e01fbccd94fac572f65e6b995e95e981191c241138cd9a9a6f51ba768cd0b3efd9edc0a5 SHA512 cb2fd0a55f23c92ec46c27edd4595421d4ac346f8cd4faeb2b8e0b017232ac637ee20ed3a00c8b79ee106e922ade6efc5e09c970807757cc372fa9fc26fe9ed1
|
||||
|
@ -0,0 +1,143 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
# Please report bugs/suggestions on: https://github.com/anyc/steam-overlay
|
||||
# or come to #gentoo-games in Libera Chat IRC
|
||||
|
||||
inherit desktop linux-info prefix xdg
|
||||
|
||||
DESCRIPTION="Installer, launcher and supplementary files for Valve's Steam client"
|
||||
HOMEPAGE="https://steampowered.com"
|
||||
SRC_URI="https://repo.steampowered.com/steam/archive/stable/steam_${PV}.tar.gz"
|
||||
|
||||
LICENSE="ValveSteamLicense MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+joystick +steamruntime +udev"
|
||||
RESTRICT="bindist mirror test"
|
||||
|
||||
RDEPEND="
|
||||
app-arch/tar
|
||||
app-shells/bash
|
||||
net-misc/curl
|
||||
|
||||
sys-libs/libudev-compat
|
||||
|
||||
joystick? (
|
||||
udev? ( games-util/game-device-udev-rules )
|
||||
)
|
||||
steamruntime? (
|
||||
virtual/opengl[abi_x86_32]
|
||||
x11-libs/libX11[abi_x86_32]
|
||||
x11-libs/libXau[abi_x86_32]
|
||||
x11-libs/libxcb[abi_x86_32]
|
||||
x11-libs/libXdmcp[abi_x86_32]
|
||||
)
|
||||
!steamruntime? (
|
||||
>=games-util/steam-client-meta-0-r20230513[steamruntime?]
|
||||
)
|
||||
|
||||
amd64? (
|
||||
>=sys-devel/gcc-4.6.0[multilib]
|
||||
>=sys-libs/glibc-2.15[multilib]
|
||||
)
|
||||
x86? (
|
||||
>=sys-devel/gcc-4.6.0
|
||||
>=sys-libs/glibc-2.15
|
||||
)"
|
||||
|
||||
S="${WORKDIR}/${PN}"
|
||||
|
||||
pkg_setup() {
|
||||
linux-info_pkg_setup
|
||||
|
||||
if ! { linux_config_exists && linux_chkconfig_present INPUT_UINPUT; }; then
|
||||
ewarn "If you want to use Steam Input's virtual controller"
|
||||
ewarn "implementation, please make sure CONFIG_INPUT_UINPUT"
|
||||
ewarn "is enabled in your kernel config."
|
||||
|
||||
# Device Drivers
|
||||
# -> Input device support
|
||||
# -> Miscellaneous devices
|
||||
# -> User level driver support
|
||||
fi
|
||||
}
|
||||
|
||||
path_entries() {
|
||||
local multilib=${1}
|
||||
shift
|
||||
|
||||
while true; do
|
||||
echo -n ${EPREFIX}/usr/$(get_libdir)/${1}$(${multilib} && use amd64 && echo :${EPREFIX}/usr/$(ABI=x86 get_libdir)/${1})
|
||||
shift
|
||||
|
||||
if [[ -n ${1} ]]; then
|
||||
echo -n :
|
||||
else
|
||||
break
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
||||
native_path_entries() { path_entries false "${@}"; }
|
||||
multilib_path_entries() { path_entries true "${@}"; }
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed \
|
||||
-e "s#@@PVR@@#${PVR}#g" \
|
||||
-e "s#@@GENTOO_LD_LIBRARY_PATH@@#$(multilib_path_entries debiancompat fltk)#g" \
|
||||
-e "s#@@STEAM_RUNTIME@@#$(usex steamruntime 1 0)#g" \
|
||||
"${FILESDIR}"/steam-wrapper.sh > steam-wrapper.sh || die
|
||||
|
||||
# Still need EPREFIX in the sed replacements above because the
|
||||
# regular expression used by hprefixify doesn't match there.
|
||||
hprefixify bin_steam.sh steam-wrapper.sh
|
||||
}
|
||||
|
||||
src_install() {
|
||||
emake install-{icons,bootstrap} \
|
||||
DESTDIR="${D}" PREFIX="${EPREFIX}/usr"
|
||||
|
||||
newbin steam-wrapper.sh steam
|
||||
exeinto /usr/lib/steam
|
||||
doexe bin_steam.sh
|
||||
domenu steam.desktop
|
||||
|
||||
dodoc README debian/changelog
|
||||
doman steam.6
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_pkg_postinst
|
||||
|
||||
elog "Execute ${EPREFIX}/usr/bin/steam to download and install the actual"
|
||||
elog "client into your home folder. After installation, the script"
|
||||
elog "also starts the client from your home folder."
|
||||
elog ""
|
||||
|
||||
if use steamruntime; then
|
||||
ewarn "You enabled the Steam runtime environment. Steam will use bundled"
|
||||
ewarn "libraries instead of Gentoo's system libraries."
|
||||
ewarn ""
|
||||
else
|
||||
elog "We disable STEAM_RUNTIME in order to ignore bundled libraries"
|
||||
elog "and use installed system libraries instead. If you have problems,"
|
||||
elog "try starting Steam with: STEAM_RUNTIME=1 steam"
|
||||
ewarn ""
|
||||
ewarn "Notice: Valve only supports Steam with the runtime enabled!"
|
||||
ewarn ""
|
||||
fi
|
||||
|
||||
if ! has_version "gnome-extra/zenity"; then
|
||||
ewarn "Valve does not provide a xterm fallback for all calls of zenity."
|
||||
ewarn "Please install gnome-extra/zenity for full support."
|
||||
ewarn ""
|
||||
fi
|
||||
|
||||
ewarn "The Steam client and the games are _not_ controlled by Portage."
|
||||
ewarn "Updates are handled by the client itself."
|
||||
}
|
Loading…
Reference in new issue