void-packages/srcpkgs/steam/template

36 lines
1.3 KiB
Bash

# Template file for 'steam'
pkgname=steam
version=1.0.0.55
revision=3
wrksrc=steam
only_for_archs="i686 x86_64"
depends="zenity xz curl dbus freetype gdk-pixbuf hicolor-icon-theme desktop-file-utils liberation-fonts-ttf"
short_desc="Digital distribution client bootstrap package - Valve's steam client"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="Proprietary license"
homepage="https://steampowered.com/"
distfiles="http://repo.steampowered.com/${pkgname}/pool/${pkgname}/s/${pkgname}/${pkgname}_${version}.tar.gz"
checksum=c303a610ebd7e392f5027b22ee0b64bf178344bd979bef473046c57c3599a1af
repository="nonfree"
do_install() {
make DESTDIR=${DESTDIR} install
# Link license
vmkdir usr/share/licenses/steam
ln -sfr ${DESTDIR}/usr/share/doc/steam/steam_install_agreement.txt \
${DESTDIR}/usr/share/licenses/steam/LICENSE
# Ignore steamdeps.
ln -sf /bin/true ${DESTDIR}/usr/bin/steamdeps
# Steam Controller support: need read-write access to
# Valve-owned input event device nodes.
# See https://bugs.launchpad.net/ubuntu/+source/steam/+bug/1498655
vinstall ${FILESDIR}/99-steam-controller-perms.rules 644 usr/lib/udev/rules.d
# Device support for Steam-related hardware (e.g. controllers over Steam Link)
vinstall ${FILESDIR}/60-steam-input.rules 644 usr/lib/udev/rules.d
vinstall ${FILESDIR}/60-steam-vr.rules 644 usr/lib/udev/rules.d
}