run in place false. make install

master
root 3 years ago
parent 354d0fafe0
commit f23f0ee998

@ -5,9 +5,7 @@ minetestUrlReleases="https://github.com/minetest/minetest/archive/refs/tags"
minetestVersion="5.4.1"
minetestUrlSourceCode="$minetestUrlReleases/$minetestVersion.tar.gz"
minetestDirTmp="/tmp/minetest-$minetestVersion.tar.gz"
minetestDirBin="/usr/bin"
minetestDirConfig="/etc/minetest"
minetestDirResources="/usr/share/minetest"
main (){
updateSys
@ -15,10 +13,7 @@ main (){
downloadMinetest
extractMinetest
compileMinetest
copyBinMinetestServer
copyConfMinetestServer
createDirResources
copyDefaultWorld
}
isOK (){
@ -64,14 +59,9 @@ compileMinetest (){
echo "Compiling in 2";sleep 1
echo "Compiling in 1";sleep 1
sleep 3
cmake . -DRUN_IN_PLACE=TRUE -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE -DENABLE_REDIS=OFF -DENABLE_LEVELDB=OFF -DCMAKE_BUILD_TYPE=Release -DENABLE_CURL=ON -DENABLE_CURSES=ON -DENABLE_FREETYPE=ON -DENABLE_GETTEXT=ON -DENABLE_POSTGRESQL=ON -DENABLE_SPATIAL=ON -DENABLE_SOUND=ON -DENABLE_LUAJIT=ON -DENABLE_PROMETHEUS=OFF -DENABLE_SYSTEM_GMP=ON -DPostgreSQL_LIBRARY=/usr/lib/x86_64-linux-gnu/libpq.so.5
cmake . -DRUN_IN_PLACE=FALSE -DBUILD_SERVER=TRUE -DBUILD_CLIENT=FALSE -DENABLE_REDIS=OFF -DENABLE_LEVELDB=OFF -DCMAKE_BUILD_TYPE=Release -DENABLE_CURL=ON -DENABLE_CURSES=ON -DENABLE_FREETYPE=ON -DENABLE_GETTEXT=ON -DENABLE_POSTGRESQL=ON -DENABLE_SPATIAL=ON -DENABLE_SOUND=ON -DENABLE_LUAJIT=ON -DENABLE_PROMETHEUS=OFF -DENABLE_SYSTEM_GMP=ON -DPostgreSQL_LIBRARY=/usr/lib/x86_64-linux-gnu/libpq.so.5
make -j$(nproc)
isOK
}
copyBinMinetestServer (){
taskName="Copy binary file: minetestserver to $minetestDirBin/"; echo -e "\n[+][$taskName]"
cp -pR /tmp/minetest-$minetestVersion/bin/minetestserver $minetestDirBin/
make install
isOK
}
@ -82,19 +72,5 @@ copyConfMinetestServer (){
isOK
}
createDirResources (){
taskName="make resource directories on $minetestDirResources"; echo -e "\n[+][$taskName]"
mkdir -p $minetestDirResources $minetestDirResources/worlds
isOK
}
copyDefaultWorld (){
taskName="Download minetest_game"; echo -e "\n[+][$taskName]"
cd $minetestDirResources/worlds
rm -rf $minetestDirResources/worlds/minetest_game
git clone https://github.com/minetest/minetest_game.git minetest_game
isOK
}
main

Loading…
Cancel
Save