summaryrefslogtreecommitdiff
path: root/steam/Pkgfile
blob: f241c351b574721bed3dfce7e8f4e0bc0814fccb (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
    5 # Optional: pulseaudio-32
    6 
    7 name=steam
    8 version=1.0.0.61
    9 release=2
   10 source=(http://repo.steampowered.com/$name/pool/$name/s/$name/${name}_$version.tar.gz
   11 	steam-runtime.sh
   12 	alsa_sdl_audiodriver.patch)
   13 
   14 build() {
   15 	cd $name
   16 
   17 	patch -p1 -i $SRC/alsa_sdl_audiodriver.patch
   18 
   19 	# apply roundups for udev rules
   20 	sed -r 's|("0666")|"0660", TAG+="uaccess"|g' -i lib/udev/rules.d/60-steam-input.rules
   21 	sed -r 's|("misc")|\1, OPTIONS+="static_node=uinput"|g' -i lib/udev/rules.d/60-steam-input.rules
   22 	sed -r 's|(, TAG\+="uaccess")|, MODE="0660"\1|g' -i lib/udev/rules.d/60-steam-vr.rules
   23 
   24 	# separated runtime/native desktop files
   25 	sed -r 's|(Name=Steam)|\1 (Runtime)|' -i steam.desktop
   26 	sed -r 's|(/usr/bin/steam)|\1-runtime|' -i steam.desktop
   27 
   28 	make DESTDIR=$PKG install
   29 
   30 	install -Dm 755 $SRC/steam-runtime.sh \
   31                 $PKG/usr/bin/steam-runtime
   32 
   33 	install -d $PKG/usr/lib/steam
   34 	mv $PKG/usr/bin/steam $PKG/usr/lib/steam/steam
   35 	ln -sf /usr/bin/steam-runtime $PKG/usr/bin/steam
   36 
   37 	# blank steamdeps because apt-get
   38 	ln -sf /bin/true $PKG/usr/bin/steamdeps
   39 
   40 	install -d $PKG/etc/ssl/certs
   41 
   42 	install -Dm 644 lib/udev/rules.d/60-steam-input.rules \
   43 		$PKG/usr/lib/udev/rules.d/70-steam-input.rules
   44 
   45 	install -Dm 644 lib/udev/rules.d/60-steam-vr.rules \
   46 		$PKG/usr/lib/udev/rules.d/70-steam-vr.rules
   47 
   48 	rm -r $PKG/usr/share/doc
   49 }

Generated by cgit