games/steam: Add desktop file

Signed-off-by: Christoph Willing <chris.willing@linux.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Christoph Willing 2020-03-21 13:37:36 +10:00 committed by Willy Sudiarto Raharjo
parent e08c9b0fcb
commit 558819caba
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
1 changed files with 5 additions and 2 deletions

View File

@ -4,7 +4,7 @@
# Copyright 2016 Talos Thoren
# All rights reserved.
# Copyright 2019 Christoph Willing, Brisbane, Australia
# Copyright 2019,20 Christoph Willing, Brisbane, Australia
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -26,7 +26,7 @@
PRGNAM=steam
VERSION=${VERSION:-1.0.0.61}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -86,6 +86,9 @@ mkdir -p $PKG/lib/udev/rules.d
install -p -m 0644 lib/udev/rules.d/*.rules $PKG/lib/udev/rules.d/
sed -i -e 's/^KERNEL=="uinput".*/& GROUP="plugdev"/' $PKG/lib/udev/rules.d/60-steam-input.rules
mkdir -p $PKG/usr/share/applications
install -m 0644 steam.desktop $PKG/usr/share/applications/
# alienBOB's trick for unfound system apps
sed -i -e '\/usr\/bin\/env\ bash/{N;s#$#\nexport PATH="/usr/lib/steam/local:$PATH"\n#}' $PKG/usr/bin/steam
mkdir -p $PKG/usr/lib/steam/local