summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorJesse Ezell <[email protected]>2014-03-20 22:02:19 -0700
committerJesse Ezell <[email protected]>2014-03-20 22:02:19 -0700
commit37964e878f70229171f94668cb96f347b798e2b2 (patch)
tree5781761e13e57edb3589844b6faa799c1158b93a /script
parentd0b334b24409ddc190a7010be0072d87df6b6bfe (diff)
parent2811845a1287d949a74b8ed80a5791fd8875002a (diff)
merge with latest
Diffstat (limited to 'script')
-rwxr-xr-xscript/build-libgit2.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/script/build-libgit2.sh b/script/build-libgit2.sh
new file mode 100755
index 0000000..aa43df5
--- /dev/null
+++ b/script/build-libgit2.sh
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+set -ex
+
+git clone --depth 1 --single-branch git://github.com/libgit2/libgit2 libgit2
+
+cd libgit2
+cmake -DTHREADSAFE=ON \
+ -DBUILD_CLAR=OFF \
+ -DCMAKE_INSTALL_PREFIX=$PWD/install \
+ .
+
+make install
+
+# Let the Go build system know where to find libgit2
+export LD_LIBRARY_PATH="$TMPDIR/libgit2/install/lib"
+export PKG_CONFIG_PATH="$TMPDIR/libgit2/install/lib/pkgconfig"