lib32/steam/PKGBUILD

75 lines
2.9 KiB
Bash
Raw Normal View History

2013-03-24 01:17:26 +08:00
pkgname=steam
2016-04-12 02:27:10 +08:00
pkgver=1.0.0.52
pkgrel=1
2014-10-31 06:15:59 +08:00
pkgdesc="Digital distribution client bootstrap package"
2013-03-24 01:17:26 +08:00
arch=('x86_64')
url="http://steampowered.com/"
license=('custom')
optdepends=('lib32-flashplugin: for flash video'
'freshplayerplugin: alternative flash video support'
2016-01-13 09:44:59 +08:00
'lib32-alsa-plugins: for pulseaudio on some games'
'lib32-mesa: for open source driver users'
'lib32-catalyst-utils: for AMD Catalyst users'
'lib32-nvidia-utils: for NVIDIA proprietary blob users'
'lib32-primus: for NVIDIA + Bumblebee users')
2013-03-24 01:17:26 +08:00
install=steam.install
source=("http://repo.steampowered.com/$pkgname/pool/$pkgname/s/$pkgname/${pkgname}_$pkgver.tar.gz"
'alsa_sdl_audiodriver.patch'
'steam.patch'
'steam.sh.patch'
'steam_info.sh')
2016-04-12 02:27:10 +08:00
sha256sums=('dd3b1a9f597bf0e088094d6fd1e495068434b604346139f277ea26c41e009304'
'174a110eda1c9d5b1c92a4490b266b31918559bbf8292a94905221c92da4bc0e'
'ae933bda073e11ad6ae61d0ede0b472ba598df251c30690592a61c11779c7ee4'
'7d33435937e553a6cb1e6918d1024d96c6081e8df560ea5bd1252146cfe670a8'
2016-01-13 09:44:59 +08:00
'9b54b38abd3b8b449a445069d21f042b542ca5c4edd82908b5f68c7377dd7f19')
2013-03-24 01:17:26 +08:00
prepare() {
patch -d "$pkgname" -Np1 -i "$srcdir/alsa_sdl_audiodriver.patch"
install_agreement_window
}
install_agreement_window() {
2015-12-29 19:11:36 +08:00
##patches for to be able to approve the 'install agreement' other than through the terminal
patch -d "$pkgname" -Np1 -i "$srcdir/steam.patch"
# patch steam.sh that is inside an archive
cd $srcdir/steam
tar -xJf bootstraplinux_ubuntu12_32.tar.xz
cd ../
# delete the zenity check
sed -i s!zenity!''! $srcdir/steam/steamdeps.txt
patch -d "$pkgname" -Np1 -i "$srcdir/steam.sh.patch"
# create the archive again
cd steam
rm bootstraplinux_ubuntu12_32.tar.xz
tar -cJf bootstraplinux_ubuntu12_32.tar.xz \
linux32 ubuntu12_32 steam.sh steam_install_agreement.txt steamdeps.txt
2013-03-24 01:17:26 +08:00
}
package() {
2015-12-29 19:11:36 +08:00
depends=(
'bash' 'xterm' 'desktop-file-utils' 'hicolor-icon-theme' 'curl'
2016-04-12 02:27:10 +08:00
'dbus' 'freetype2' 'gdk-pixbuf2' 'ttf-liberation' 'kde-baseapps-kdialog'
2016-01-13 09:44:59 +08:00
'python3' 'lib32-sdl' 'lib32-libvorbis' 'lib32-alsa-lib' 'lib32-libgl'
'lib32-libgcrypt' 'lib32-nss' 'lib32-openal' 'lib32-gcc-libs' 'lib32-libx11' 'lib32-libxss' 'lib32-libxshmfence')
2015-12-29 19:11:36 +08:00
2014-10-31 06:15:59 +08:00
make -C "$pkgname" DESTDIR="$pkgdir" install
2015-12-21 18:13:23 +08:00
# Install license
2014-10-31 06:15:59 +08:00
install -Dm644 "$pkgdir/usr/share/doc/steam/steam_install_agreement.txt" "$pkgdir/usr/share/licenses/steam/LICENSE"
2013-03-24 01:17:26 +08:00
2014-10-31 06:15:59 +08:00
# blank steamdeps because apt-get
ln -sf /bin/true "$pkgdir/usr/bin/steamdeps"
install -Dm644 $srcdir/steam/lib/udev/rules.d/99-steam-controller-perms.rules $pkgdir/usr/lib/udev/rules.d/99-steam-controller-perms.rules
# window that points the user to the Steam's wiki page
install -D steam_info.sh $pkgdir/usr/bin/steam_info.sh
sed -i s!"Exec=/usr/bin/steam %U"!"Exec=/usr/bin/steam_info.sh"! \
$pkgdir/usr/share/applications/steam.desktop
2013-03-24 01:17:26 +08:00
}