Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 442176
Collapse All | Expand All

(-)usr/bin/steam.orig (-24 lines)
Lines 1-26 Link Here
1
#! /bin/bash
1
#! /bin/bash
2
2
3
function install_extra_packages() {
4
	EXTRA_PACKAGES="$*"
5
6
	# Get the list of packages which are already installed
7
	INSTALLED="$(dpkg --get-selections $EXTRA_PACKAGES 2>/dev/null | grep "\binstall$" | cut -f1 | sort)"
8
9
	# compute the list of packages that need to be installed
10
	NEEDSINSTALL="$(comm -23 <(echo "$EXTRA_PACKAGES" | tr ' ' '\n' | sort) <(echo "$INSTALLED") | xargs ) "
11
12
	MESSAGE='Enter your password to complete the Steam installation.
13
14
Steam needs to install these additional packages: 
15
'$NEEDSINSTALL
16
17
	if [ $NEEDSINSTALL ]; then
18
		# Call gksudo to actually do the work
19
		gksudo --disable-grab --message "$MESSAGE" apt-get install $NEEDSINSTALL
20
	fi
21
}
22
23
24
# these variables can be overridden on commandline
3
# these variables can be overridden on commandline
25
LAUNCHSTEAMDIR=~/Steam
4
LAUNCHSTEAMDIR=~/Steam
26
LAUNCHSTEAMPLATFORM=ubuntu12_32
5
LAUNCHSTEAMPLATFORM=ubuntu12_32
Lines 54-62 Link Here
54
	
33
	
55
    cp /usr/share/applications/steam.desktop "${DESKTOP_DIR}"
34
    cp /usr/share/applications/steam.desktop "${DESKTOP_DIR}"
56
    chmod +x "${DESKTOP_DIR}/steam.desktop"
35
    chmod +x "${DESKTOP_DIR}/steam.desktop"
57
58
	# Try and install any extra packages
59
	install_extra_packages jockey-common python-apt
60
fi
36
fi
61
# go to the install directory and run the client
37
# go to the install directory and run the client
62
LAUNCHSTEAMDIR=`readlink -e $STEAMROOTLINK`
38
LAUNCHSTEAMDIR=`readlink -e $STEAMROOTLINK`

Return to bug 442176