shfmt
This commit is contained in:
@ -12,8 +12,7 @@ deps_amd64=('libgcc(x86-32)')
|
||||
deps_amd64_arch=('lib32-gcc-libs')
|
||||
deps_amd64_rosa=('lib64gcc1')
|
||||
|
||||
|
||||
sources=("https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz")
|
||||
sources=("https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz")
|
||||
checksums=('SKIP')
|
||||
|
||||
prepare() {
|
||||
@ -23,8 +22,8 @@ prepare() {
|
||||
package() {
|
||||
install -Dm755 "${scriptdir}/steamcmd" "${pkgdir}/usr/bin/steamcmd"
|
||||
install -Dm755 "${srcdir}/steamcmd.sh" "${pkgdir}/usr/share/steamcmd/steamcmd.sh"
|
||||
install -Dm755 "${srcdir}/linux32/crashhandler.so" "${pkgdir}/usr/share/steamcmd/linux32/crashhandler.so"
|
||||
install -Dm755 "${srcdir}/linux32/libstdc++.so.6" "${pkgdir}/usr/share/steamcmd/linux32/libstdc++.so.6"
|
||||
install -Dm755 "${srcdir}/linux32/steamcmd" "${pkgdir}/usr/share/steamcmd/linux32/steamcmd"
|
||||
install -Dm755 "${srcdir}/linux32/steamerrorreporter" "${pkgdir}/usr/share/steamcmd/linux32/steamerrorreporter"
|
||||
install -Dm755 "${srcdir}/linux32/crashhandler.so" "${pkgdir}/usr/share/steamcmd/linux32/crashhandler.so"
|
||||
install -Dm755 "${srcdir}/linux32/libstdc++.so.6" "${pkgdir}/usr/share/steamcmd/linux32/libstdc++.so.6"
|
||||
install -Dm755 "${srcdir}/linux32/steamcmd" "${pkgdir}/usr/share/steamcmd/linux32/steamcmd"
|
||||
install -Dm755 "${srcdir}/linux32/steamerrorreporter" "${pkgdir}/usr/share/steamcmd/linux32/steamerrorreporter"
|
||||
}
|
||||
|
@ -4,21 +4,19 @@
|
||||
|
||||
# create a fake Steam installation to avoid
|
||||
# that steamcmd uses "/home/$user/Steam" instead
|
||||
if [ ! -e ~/.steam ]
|
||||
then
|
||||
mkdir -p ~/.steam/appcache/
|
||||
mkdir -p ~/.steam/config/
|
||||
mkdir -p ~/.steam/logs/
|
||||
mkdir -p ~/.steam/SteamApps/common/
|
||||
ln -s ~/.steam ~/.steam/root
|
||||
ln -s ~/.steam ~/.steam/steam
|
||||
if [ ! -e ~/.steam ]; then
|
||||
mkdir -p ~/.steam/appcache/
|
||||
mkdir -p ~/.steam/config/
|
||||
mkdir -p ~/.steam/logs/
|
||||
mkdir -p ~/.steam/SteamApps/common/
|
||||
ln -s ~/.steam ~/.steam/root
|
||||
ln -s ~/.steam ~/.steam/steam
|
||||
fi
|
||||
|
||||
if [ ! -e ~/.steam/steamcmd ]
|
||||
then
|
||||
mkdir -p ~/.steam/steamcmd/linux32
|
||||
# steamcmd will replace these files with newer ones itself on first run
|
||||
cp /usr/share/steamcmd/steamcmd.sh ~/.steam/steamcmd/steamcmd.sh
|
||||
cp /usr/share/steamcmd/linux32/steamcmd ~/.steam/steamcmd/linux32/steamcmd
|
||||
if [ ! -e ~/.steam/steamcmd ]; then
|
||||
mkdir -p ~/.steam/steamcmd/linux32
|
||||
# steamcmd will replace these files with newer ones itself on first run
|
||||
cp /usr/share/steamcmd/steamcmd.sh ~/.steam/steamcmd/steamcmd.sh
|
||||
cp /usr/share/steamcmd/linux32/steamcmd ~/.steam/steamcmd/linux32/steamcmd
|
||||
fi
|
||||
exec ~/.steam/steamcmd/steamcmd.sh $@
|
||||
exec ~/.steam/steamcmd/steamcmd.sh $@
|
||||
|
Reference in New Issue
Block a user