contrib/steam/Pkgfile

43 lines
1.4 KiB
Plaintext
Raw Normal View History

2016-03-28 05:08:00 +02:00
# Description: Digital distribution client bootstrap package.
2023-03-03 19:46:13 +01:00
# URL: https://store.steampowered.com/
# Maintainer: Tim Biermann, tbier at posteo dot de
2024-02-09 19:41:35 +01:00
# Depends on: desktop-file-utils gtk-32 libgcrypt-32 mesa-32 nss-32 openal-32 xdg-user-dirs zenity
# Optional: pulseaudio-32
2016-03-28 05:08:00 +02:00
name=steam
2024-02-09 19:41:35 +01:00
version=1.0.0.79
2020-06-10 12:41:54 +02:00
release=1
2023-03-03 19:46:13 +01:00
source=(https://repo.steampowered.com/$name/pool/$name/s/$name/${name}_$version.tar.gz
steam-runtime.sh)
2016-03-28 05:08:00 +02:00
build() {
2023-03-03 19:46:13 +01:00
cd steam-launcher
2016-03-28 05:08:00 +02:00
2023-03-03 19:46:13 +01:00
# apply roundups for udev rules
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
2023-03-03 19:46:13 +01: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
2023-03-03 19:46:13 +01:00
make DESTDIR=$PKG install
2016-03-28 05:08:00 +02:00
2023-03-03 19:46:13 +01:00
mv $PKG/usr/bin/steam $PKG/usr/lib/steam/steam
install -Dm 755 $SRC/steam-runtime.sh $PKG/usr/bin/steam-runtime
2023-03-03 19:46:13 +01:00
# blank steamdeps because apt-get
ln -sf /bin/true $PKG/usr/bin/steamdeps
2016-03-28 05:08:00 +02:00
2023-03-03 19:46:13 +01:00
install -d $PKG/etc/ssl/certs
2018-07-16 15:48:55 +02:00
2023-03-03 19:46:13 +01:00
install -Dm 644 subprojects/steam-devices/60-steam-input.rules \
$PKG/usr/lib/udev/rules.d/70-steam-input.rules
2016-03-28 05:08:00 +02:00
2023-03-03 19:46:13 +01:00
install -Dm 644 subprojects/steam-devices/60-steam-vr.rules \
$PKG/usr/lib/udev/rules.d/70-steam-vr.rules
2016-03-28 05:08:00 +02:00
2023-03-03 19:46:13 +01:00
rm -r $PKG/usr/share/doc
2016-03-28 05:08:00 +02:00
}