Carlos Martín Nieto 1d509c1109 travis: download a tag instead of master
libgit2's development now happens on the master branch, which means we
can't use it to refer to the latest release. Download v0.21.0 explicitly
instead.
2014-07-03 08:57:47 +02:00

13 lines
229 B
Bash
Executable File

#!/bin/sh
cd ~
git clone --depth=1 -b v0.21.0 https://github.com/libgit2/libgit2.git
cd libgit2/
mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=../_install -DBUILD_CLAR=OFF
cmake --build . --target install
ls -la ..