Skip to content

Commit

Permalink
Compile libgit2 from source
Browse files Browse the repository at this point in the history
  • Loading branch information
touala authored Dec 17, 2020
1 parent 058b1eb commit 11c4334
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions postInstall
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,15 @@ cp samtools /usr/bin/samtools

cd ..

git clone --depth=1 -b v1.0.0 https://github.com/libgit2/libgit2.git /libgit2_src \
&& cd /libgit2_src \
&& cmake . -DBUILD_CLAR=OFF -DCMAKE_BUILD_TYPE=Release -DEMBED_SSH_PATH=/libssh2_src -DCMAKE_INSTALL_PREFIX=/libgit2 \
&& cmake --build . --target install \
&& cp -r /libgit2/* /usr/bin \
&& cp -r /libgit2/* /usr/local

cd ..

# Prepare for installing R packages
echo "options(repos ='https://cran.rstudio.com/', \
unzip = 'internal', \
Expand Down

0 comments on commit 11c4334

Please sign in to comment.