blob: f2d9d0b69862bfa6028b1f4f5060d3d45aa0f94b (
plain)
1 # Description: Digital distribution client bootstrap package.
2 # URL: http://store.steampowered.com/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: dbus-32 desktop-file-utils gtk-32 libgcrypt-32 mesa3d-32 nss-32 openal-32 zenity
5 # Optional: pulseaudio-32
6
7 name=steam
8 version=1.0.0.67
9 release=1
10 source=(http://repo.steampowered.com/$name/pool/$name/s/$name/${name}_$version.tar.gz
11 steam-runtime.sh)
12
13 build() {
14 cd steam-launcher
15
16 # apply roundups for udev rules
17 sed -r 's|("0666")|"0660", TAG+="uaccess"|g' -i subprojects/steam-devices/60-steam-input.rules
18 sed -r 's|("misc")|\1, OPTIONS+="static_node=uinput"|g' -i subprojects/steam-devices/60-steam-input.rules
19 sed -r 's|(, TAG\+="uaccess")|, MODE="0660"\1|g' -i subprojects/steam-devices/60-steam-vr.rules
20
21 # separated runtime/native desktop files
22 sed -r 's|(Name=Steam)|\1 (Runtime)|' -i steam.desktop
23 sed -r 's|(/usr/bin/steam)|\1-runtime|' -i steam.desktop
24
25 make DESTDIR=$PKG install
26
27 mv $PKG/usr/bin/steam $PKG/usr/lib/steam/steam
28 install -Dm 755 $SRC/steam-runtime.sh $PKG/usr/bin/steam-runtime
29
30 # blank steamdeps because apt-get
31 ln -sf /bin/true $PKG/usr/bin/steamdeps
32
33 install -d $PKG/etc/ssl/certs
34
35 install -Dm 644 subprojects/steam-devices/60-steam-input.rules \
36 $PKG/usr/lib/udev/rules.d/70-steam-input.rules
37
38 install -Dm 644 subprojects/steam-devices/60-steam-vr.rules \
39 $PKG/usr/lib/udev/rules.d/70-steam-vr.rules
40
41 rm -r $PKG/usr/share/doc
42 }
|