summaryrefslogtreecommitdiff
path: root/steam/Pkgfile
blob: 26af5537bbb7f8c4c92de830b833b1a688ff576d (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.62
    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 	rm $PKG/usr/bin/steam
   28 	ln -sf /usr/bin/steam-runtime $PKG/usr/bin/steam
   29 
   30 	install -Dm 755 $SRC/steam-runtime.sh \
   31                 $PKG/usr/bin/steam-runtime
   32 
   33 	install -d $PKG/usr/lib/steam
   34 
   35 	# blank steamdeps because apt-get
   36 	ln -sf /bin/true $PKG/usr/bin/steamdeps
   37 
   38 	install -d $PKG/etc/ssl/certs
   39 
   40 	install -Dm 644 subprojects/steam-devices/60-steam-input.rules \
   41 		$PKG/usr/lib/udev/rules.d/70-steam-input.rules
   42 
   43 	install -Dm 644 subprojects/steam-devices/60-steam-vr.rules \
   44 		$PKG/usr/lib/udev/rules.d/70-steam-vr.rules
   45 
   46 	rm -r $PKG/usr/share/doc
   47 }

Generated by cgit