summaryrefslogtreecommitdiff
path: root/steam/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'steam/Pkgfile')
-rw-r--r--steam/Pkgfile35
1 files changed, 22 insertions, 13 deletions
diff --git a/steam/Pkgfile b/steam/Pkgfile
index cbb539369..f241c351b 100644
--- a/steam/Pkgfile
+++ b/steam/Pkgfile
@@ -2,14 +2,13 @@
# URL: http://store.steampowered.com/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: dbus-32 desktop-file-utils gtk-32 libgcrypt-32 mesa3d-32 nss-32 openal-32
-# Optional: pulseaudio-32 libappindicator-sharp-32
+# Optional: pulseaudio-32
name=steam
version=1.0.0.61
-release=1
+release=2
source=(http://repo.steampowered.com/$name/pool/$name/s/$name/${name}_$version.tar.gz
- steam-native.sh
- steam-native.desktop
+ steam-runtime.sh
alsa_sdl_audiodriver.patch)
build() {
@@ -17,24 +16,34 @@ build() {
patch -p1 -i $SRC/alsa_sdl_audiodriver.patch
- install -m 0755 -D $SRC/steam-native.sh \
- $PKG/usr/bin/steam-native
+ # apply roundups for udev rules
+ sed -r 's|("0666")|"0660", TAG+="uaccess"|g' -i lib/udev/rules.d/60-steam-input.rules
+ sed -r 's|("misc")|\1, OPTIONS+="static_node=uinput"|g' -i lib/udev/rules.d/60-steam-input.rules
+ sed -r 's|(, TAG\+="uaccess")|, MODE="0660"\1|g' -i lib/udev/rules.d/60-steam-vr.rules
+
+ # 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
- install -m 0644 -D $SRC/steam-native.desktop \
- -t $PKG/usr/share/applications
-
make DESTDIR=$PKG install
+ install -Dm 755 $SRC/steam-runtime.sh \
+ $PKG/usr/bin/steam-runtime
+
+ install -d $PKG/usr/lib/steam
+ mv $PKG/usr/bin/steam $PKG/usr/lib/steam/steam
+ ln -sf /usr/bin/steam-runtime $PKG/usr/bin/steam
+
# blank steamdeps because apt-get
ln -sf /bin/true $PKG/usr/bin/steamdeps
install -d $PKG/etc/ssl/certs
- mv $PKG/usr/lib $PKG/usr/lib32
+ install -Dm 644 lib/udev/rules.d/60-steam-input.rules \
+ $PKG/usr/lib/udev/rules.d/70-steam-input.rules
- sed \
- -e 's|/usr/lib/$STEAMPACKAGE|/usr/lib32/$STEAMPACKAGE|' \
- -i $PKG/usr/bin/steam
+ install -Dm 644 lib/udev/rules.d/60-steam-vr.rules \
+ $PKG/usr/lib/udev/rules.d/70-steam-vr.rules
rm -r $PKG/usr/share/doc
}

Generated by cgit