Make install script works on archlinux
This commit is contained in:
parent
7958508e14
commit
f68e91466e
@ -18,22 +18,45 @@ then
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Installing dependencies.."
|
||||
if [ -n "`uname -a | grep -i arch`" ]
|
||||
then
|
||||
sudo pacman -Sy --noconfirm \
|
||||
make \
|
||||
m4 \
|
||||
gcc \
|
||||
patch \
|
||||
bubblewrap \
|
||||
rsync \
|
||||
curl
|
||||
fi
|
||||
|
||||
if [ -n "`uname -a | grep -i ubuntu`" ]
|
||||
then
|
||||
sudo apt-get install -y make \
|
||||
m4 \
|
||||
gcc \
|
||||
patch \
|
||||
bubblewrap \
|
||||
rsync \
|
||||
curl \
|
||||
curl
|
||||
fi
|
||||
|
||||
if [ -n "`uname -a | grep -i ubuntu`" ]
|
||||
then
|
||||
echo "ubuntu"
|
||||
sudo add-apt-repository -y ppa:avsm/ppa
|
||||
sudo apt-get update
|
||||
sudo apt-get install opam
|
||||
else
|
||||
# I'm going to assume here that we're on x86_64, 32-bit users should be basically
|
||||
# extinct at this point right?
|
||||
if [ -n "`uname -a | grep -i arch`" ]
|
||||
then
|
||||
echo "arch"
|
||||
sudo pacman -Sy --noconfirm opam
|
||||
else
|
||||
echo "unknown distro"
|
||||
#I'm going to assume here that we're on x86_64, 32-bit users should be basically
|
||||
#extinct at this point right?
|
||||
curl -L https://github.com/ocaml/opam/releases/download/2.0.4/opam-2.0.4-x86_64-linux \
|
||||
--output opam_temp_version_2_0_4.bin
|
||||
if [ "`openssl sha256 -r opam_temp_version_2_0_4.bin`" = "373e34f92f282273d482537f8103caad0d17b6f2699ff504bed77f474cb0c951 *opam_temp_version_2_0_4.bin" ]
|
||||
@ -62,6 +85,9 @@ else
|
||||
echo "https://gitlab.com/ligolang/ligo/issues"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
opam init -a --bare
|
||||
|
||||
|
||||
|
@ -1,8 +1,24 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
. /etc/os-release
|
||||
|
||||
apt-get update -qq
|
||||
apt-get -y -qq install \
|
||||
if [ $ID = arch ]
|
||||
then
|
||||
pacman -Sy
|
||||
sudo pacman -S --noconfirm \
|
||||
libevdev \
|
||||
perl \
|
||||
pkg-config \
|
||||
gmp \
|
||||
hidapi \
|
||||
m4 \
|
||||
libcap \
|
||||
bubblewrap \
|
||||
rsync
|
||||
|
||||
else
|
||||
apt-get update -qq
|
||||
apt-get -y -qq install \
|
||||
libev-dev \
|
||||
perl \
|
||||
pkg-config \
|
||||
@ -12,3 +28,4 @@ apt-get -y -qq install \
|
||||
libcap-dev \
|
||||
bubblewrap \
|
||||
rsync
|
||||
fi
|
||||
|
@ -2,5 +2,5 @@
|
||||
set -e
|
||||
set -x
|
||||
|
||||
printf '' | opam switch create . 4.07.1 # toto ocaml-base-compiler.4.06.1
|
||||
printf '' | opam switch create . ocaml-base-compiler.4.07.1 # toto ocaml-base-compiler.4.06.1
|
||||
eval $(opam config env)
|
||||
|
Loading…
Reference in New Issue
Block a user