2016-03-28 05:08:00 +02:00
|
|
|
# Description: Digital distribution client bootstrap package.
|
|
|
|
# URL: http://store.steampowered.com/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-07-26 13:36:51 +02:00
|
|
|
# Depends on: dbus-32 desktop-file-utils gtk-32 libgcrypt-32 mesa-32 nss-32 openal-32 zenity
|
2019-09-19 14:53:21 +02:00
|
|
|
# Optional: pulseaudio-32
|
2016-03-28 05:08:00 +02:00
|
|
|
|
|
|
|
name=steam
|
2021-08-22 16:23:59 +02:00
|
|
|
version=1.0.0.71
|
2020-06-10 12:41:54 +02:00
|
|
|
release=1
|
2016-03-28 05:08:00 +02:00
|
|
|
source=(http://repo.steampowered.com/$name/pool/$name/s/$name/${name}_$version.tar.gz
|
2020-05-30 14:00:29 +02:00
|
|
|
steam-runtime.sh)
|
2016-03-28 05:08:00 +02:00
|
|
|
|
|
|
|
build() {
|
2020-05-30 13:48:07 +02:00
|
|
|
cd steam-launcher
|
2016-03-28 05:08:00 +02:00
|
|
|
|
2019-09-19 14:53:21 +02:00
|
|
|
# apply roundups for udev rules
|
2020-05-30 13:48:07 +02:00
|
|
|
sed -r 's|("0666")|"0660", TAG+="uaccess"|g' -i subprojects/steam-devices/60-steam-input.rules
|
|
|
|
sed -r 's|("misc")|\1, OPTIONS+="static_node=uinput"|g' -i subprojects/steam-devices/60-steam-input.rules
|
|
|
|
sed -r 's|(, TAG\+="uaccess")|, MODE="0660"\1|g' -i subprojects/steam-devices/60-steam-vr.rules
|
2019-09-19 14:53:21 +02:00
|
|
|
|
|
|
|
# separated runtime/native desktop files
|
|
|
|
sed -r 's|(Name=Steam)|\1 (Runtime)|' -i steam.desktop
|
|
|
|
sed -r 's|(/usr/bin/steam)|\1-runtime|' -i steam.desktop
|
2016-10-26 23:36:41 +02:00
|
|
|
|
2016-03-28 05:08:00 +02:00
|
|
|
make DESTDIR=$PKG install
|
|
|
|
|
2020-06-07 12:25:17 +02:00
|
|
|
mv $PKG/usr/bin/steam $PKG/usr/lib/steam/steam
|
|
|
|
install -Dm 755 $SRC/steam-runtime.sh $PKG/usr/bin/steam-runtime
|
2019-09-19 14:53:21 +02:00
|
|
|
|
2016-03-28 05:08:00 +02:00
|
|
|
# blank steamdeps because apt-get
|
|
|
|
ln -sf /bin/true $PKG/usr/bin/steamdeps
|
|
|
|
|
2018-07-16 15:48:55 +02:00
|
|
|
install -d $PKG/etc/ssl/certs
|
|
|
|
|
2020-05-30 13:48:07 +02:00
|
|
|
install -Dm 644 subprojects/steam-devices/60-steam-input.rules \
|
2019-09-19 14:53:21 +02:00
|
|
|
$PKG/usr/lib/udev/rules.d/70-steam-input.rules
|
2016-03-28 05:08:00 +02:00
|
|
|
|
2020-05-30 13:48:07 +02:00
|
|
|
install -Dm 644 subprojects/steam-devices/60-steam-vr.rules \
|
2019-09-19 14:53:21 +02:00
|
|
|
$PKG/usr/lib/udev/rules.d/70-steam-vr.rules
|
2016-03-28 05:08:00 +02:00
|
|
|
|
|
|
|
rm -r $PKG/usr/share/doc
|
|
|
|
}
|