Created
November 7, 2012 11:13
-
-
Save sixman9/4030903 to your computer and use it in GitHub Desktop.
Installs Flash browser plugin for 32bit or 64bit debian-based Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#moaiLinuxUnoffical.sh | |
#Determine the OS architecture (32/64bit) using 'uname -m', then run the required commands (see http://stackoverflow.com/a/106416/304330) | |
ourArch=$(uname -m) | |
#Linux-friendly version of Moai | |
#see also git://github.com/shadowmint/moai-dev.git | |
githubRepoOwner="spacepluk" | |
gitRepoName="moai-dev" | |
gitRepoDir="moai-dev.$githubRepoOwner" | |
if [ $ourArch == 'x86_64' ]; then | |
# 64-bit | |
gitLinuxBranchName="linux-cmake-amd64" | |
else | |
# 32-bit | |
gitLinuxBranchName="linux-cmake" | |
fi | |
# Install the dependencies: | |
sudo aptitude install freeglut3-dev libglew-dev libglu1-mesa-dev libxmu-dev libxi-dev chipmunk-dev libjpeg8-dev libpng-dev libfreetype6-dev liblua5.1-0-dev libjansson-dev libtinyxml-dev libcurl4-openssl-dev zlib1g-dev libexpat1-dev cmake build-essential | |
#Clone a linux version of moai | |
git clone https://github.com/$githubRepoOwner/$gitRepoName.git $gitRepoDir | |
#Change to repo dir, then check-out the Linux git branch | |
cd "$gitRepoDir" | |
git checkout "$gitLinuxBranchName" | |
#Create out of source build dir | |
mkdir build | |
#Change to build dir, then run CMake | |
cd build | |
cmake ../cmake | |
make -j4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment