Aktualizovat „setup-mt“

install build-dep
This commit is contained in:
Milan Meduna 2020-10-25 09:11:48 +01:00
parent 8779d8a0d0
commit eaec751aa4

View file

@ -6,6 +6,11 @@ echo "Create minetest user"
adduser minetest adduser minetest
mkdir -p /home/minetest/.minetest mkdir -p /home/minetest/.minetest
echo "Allow sources repo and install dependecies for build"
perl -pi.orig -0e 's/^(deb .*\n)# (deb-src)/$1$2/mg' /etc/apt/sources.list
apt update
apt-get build-dep minetest -y
echo "Compile libspatialindex" echo "Compile libspatialindex"
rm -rf /tmp/spatialindex rm -rf /tmp/spatialindex
git clone https://github.com/libspatialindex/libspatialindex /tmp/spatialindex git clone https://github.com/libspatialindex/libspatialindex /tmp/spatialindex