mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-02-15 23:01:44 +08:00
57 lines
2.4 KiB
Bash
Executable File
57 lines
2.4 KiB
Bash
Executable File
pkgname=steam
|
|
pkgver=1.0.0.54
|
|
pkgrel=4
|
|
pkgdesc="Digital distribution client bootstrap package"
|
|
arch=('x86_64')
|
|
url="http://steampowered.com/"
|
|
license=('custom')
|
|
depends=('bash' 'desktop-file-utils' 'hicolor-icon-theme' 'curl' 'dbus'
|
|
'freetype2' 'gdk-pixbuf2' 'ttf-liberation' 'python3' 'zenity'
|
|
'lib32-libgl' 'lib32-gcc-libs' 'lib32-libx11' 'lib32-libxss' 'lib32-alsa-plugins')
|
|
optdepends=('lib32-flashplugin: for flash video'
|
|
'freshplayerplugin: alternative flash video support'
|
|
'lib32-alsa-plugins: for pulseaudio on some games'
|
|
'lib32-mesa: for open source driver users'
|
|
'lib32-nvidia-utils: for NVIDIA proprietary blob users'
|
|
'lib32-primus: for NVIDIA + Bumblebee users')
|
|
install=steam.install
|
|
source=("http://repo.steampowered.com/$pkgname/pool/$pkgname/s/$pkgname/${pkgname}_$pkgver.tar.gz"
|
|
'alsa_sdl_audiodriver.patch'
|
|
'steam-runtime.sh')
|
|
sha256sums=('42531bf2615afed54c333ae9afeebe8cb68a31304ddfcf90e61b3532a5597386'
|
|
'174a110eda1c9d5b1c92a4490b266b31918559bbf8292a94905221c92da4bc0e'
|
|
'fbaeb962f68a5cec26f09864a6b86776f54b5ce18dc000dcab7169443e09c3a6')
|
|
|
|
|
|
prepare() {
|
|
cd $pkgname
|
|
patch -Np1 < "${srcdir}/alsa_sdl_audiodriver.patch"
|
|
|
|
# apply roundups for udev rules
|
|
sed -r 's|("0666")|"0660", TAG+="uaccess"|g' -i lib/udev/rules.d/99-steam-controller-perms.rules
|
|
sed -r 's|("misc")|\1, OPTIONS+="static_node=uinput"|g' -i lib/udev/rules.d/99-steam-controller-perms.rules
|
|
sed -r 's|(, TAG\+="uaccess")|, MODE="0660"\1|g' -i lib/udev/rules.d/60-HTC-Vive-perms.rules
|
|
}
|
|
|
|
package() {
|
|
make -C "$pkgname" DESTDIR="$pkgdir" install
|
|
|
|
install -Dm755 steam-runtime.sh $pkgdir/usr/bin/steam-runtime
|
|
install -d "$pkgdir"/usr/lib/steam
|
|
mv "$pkgdir"/usr/bin/steam "$pkgdir"/usr/lib/steam/steam
|
|
ln -sf steam-runtime "$pkgdir"/usr/bin/steam
|
|
|
|
install -Dm644 "$pkgdir/usr/share/doc/steam/steam_install_agreement.txt" \
|
|
"$pkgdir/usr/share/licenses/steam/LICENSE"
|
|
install -Dm 644 $srcdir/steam/debian/changelog -t "${pkgdir}/usr/share/doc/${pkgname}"
|
|
|
|
# blank steamdeps because apt-get
|
|
ln -sf /bin/true "$pkgdir/usr/bin/steamdeps"
|
|
|
|
cd "$pkgname"
|
|
install -Dm644 lib/udev/rules.d/99-steam-controller-perms.rules \
|
|
$pkgdir/usr/lib/udev/rules.d/99-steam-controller-perms.rules
|
|
install -Dm644 lib/udev/rules.d/60-HTC-Vive-perms.rules \
|
|
$pkgdir/usr/lib/udev/rules.d/70-htc-vive.rules
|
|
}
|