blob: 5bef78dc433e2650171f6389e2fab0acfb2a9864 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
# Please report bugs/suggestions on: https://github.com/anyc/steam-overlay
# or come to #gentoo-gamerlay in freenode IRC
inherit eutils unpacker gnome2-utils fdo-mime
DESCRIPTION="Supplementary files for Valve's Steam client for Linux"
HOMEPAGE="https://steampowered.com"
if [[ "${PV}" == "9999" ]] ; then
SRC_URI="http://repo.steampowered.com/steam/archive/precise/steam_latest.deb"
KEYWORDS=""
else
SRC_URI="http://repo.steampowered.com/steam/archive/precise/steam_${PV}_i386.deb"
KEYWORDS="-* ~amd64 ~x86"
fi
LICENSE="ValveSteamLicense"
RESTRICT="bindist mirror"
SLOT="0"
IUSE=""
RDEPEND="
gnome-extra/zenity
amd64? (
>=app-emulation/emul-linux-x86-baselibs-20121028
>=app-emulation/emul-linux-x86-xlibs-20121028
>=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
>=x11-libs/libX11-1.5
x11-libs/libXau
x11-libs/libxcb
x11-libs/libXdmcp
)"
S=${WORKDIR}
src_unpack() {
unpack_deb ${A}
}
src_prepare() {
if [[ "${PV}" != "9999" ]] ; then
# remove carriage return
sed -i "s/\r//g" usr/share/applications/steam.desktop || die "Patching steam.desktop failed"
epatch "${FILESDIR}/steam-make-posix-${PV}.patch"
fi
}
src_install() {
dobin "usr/bin/steam"
insinto "/usr/lib/"
doins -r usr/lib/steam
dodoc usr/share/doc/steam/changelog.gz
doman usr/share/man/man6/steam.6.gz
domenu usr/share/applications/steam.desktop
insinto /usr/share/icons/
doins -r usr/share/icons/
doicon usr/share/pixmaps/steam.png
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
elog "Execute /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."
ewarn "The steam client and the games are _not_ controlled by portage."
ewarn "Updates are handled by the client itself."
}
pkg_postrm() {
fdo-mime_desktop_database_update
gnome2_icon_cache_update
}
|