contrib/steam/Pkgfile
2019-08-27 00:04:33 +10:00

41 lines
998 B
Plaintext

# Description: Digital distribution client bootstrap package.
# 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
name=steam
version=1.0.0.61
release=1
source=(http://repo.steampowered.com/$name/pool/$name/s/$name/${name}_$version.tar.gz
steam-native.sh
steam-native.desktop
alsa_sdl_audiodriver.patch)
build() {
cd $name
patch -p1 -i $SRC/alsa_sdl_audiodriver.patch
install -m 0755 -D $SRC/steam-native.sh \
$PKG/usr/bin/steam-native
install -m 0644 -D $SRC/steam-native.desktop \
-t $PKG/usr/share/applications
make DESTDIR=$PKG install
# 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
sed \
-e 's|/usr/lib/$STEAMPACKAGE|/usr/lib32/$STEAMPACKAGE|' \
-i $PKG/usr/bin/steam
rm -r $PKG/usr/share/doc
}