Skip to content

Instantly share code, notes, and snippets.

@lazanet
Created January 7, 2016 21:55
Show Gist options
  • Save lazanet/6e78ff656bfddc64d7a2 to your computer and use it in GitHub Desktop.
Save lazanet/6e78ff656bfddc64d7a2 to your computer and use it in GitHub Desktop.
#Xash3D pull + build on ubuntu 15.10
# by lazanet
# run with sudo
###############################
clear
rm -rdf dep
mkdir dep
cd dep
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-4.6/gcc-4.6-base_4.6.4-6ubuntu3_amd64.deb
dpkg -i gcc-4.6-base_4.6.4-6ubuntu3_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-4.6/libstdc++6-4.6-dev_4.6.4-6ubuntu3_amd64.deb
dpkg -i libstdc++6-4.6-dev_4.6.4-6ubuntu3_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-4.6/gcc-4.6_4.6.4-6ubuntu3_amd64.deb
dpkg -i gcc-4.6_4.6.4-6ubuntu3_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-4.6/g++-4.6_4.6.4-6ubuntu3_amd64.deb
dpkg -i g++-4.6_4.6.4-6ubuntu3_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/universe/g/gcc-4.6/gcc-4.6-multilib_4.6.4-6ubuntu3_amd64.deb
dpkg -i gcc-4.6-multilib_4.6.4-6ubuntu3_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/g/gcc-4.6/g++-4.6-multilib_4.6.4-6ubuntu3_amd64.deb
dpkg -i g++-4.6-multilib_4.6.4-6ubuntu3_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/b/bzip2/lib32bz2-dev_1.0.6-5_amd64.deb
dpkg -i lib32bz2-dev_1.0.6-5_amd64.deb
wget http://mirrors.kernel.org/ubuntu/pool/main/b/bzip2/lib32bz2-1.0_1.0.6-5_amd64.deb
dpkg -i lib32bz2-dev_1.0.6-5_amd64.deb
clear
# Uncomment these if you use some weird distro
#add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) universe"
#apt-get update
apt-get install cmake
apt-get install libc6-dev-i386 libc6-dev-i386 lib32z1 lib32ncurses5 lib32bz2-1.0 libx11-dev xorg-dev
#apt-get install g++-4.6-multilib lib32bz2-dev lib32z1-dev # uncomment if wget fcks up
apt-get -f install # fix for dpkg dependencies
cd /opt
git clone https://github.com/SDLash3D/halflife
cd ~/
mkdir xash3dlinux
git clone https://github.com/SDLash3D/xash3d.git
cd xash3d
mkdir -p build
cd build/
cmake ../ -DHL_SDK_DIR=/opt/halflife -DXASH_VGUI=yes -DCMAKE_OSX_ARCHITECTURE=i386
make
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment