summaryrefslogtreecommitdiff
path: root/repo/libgit/libgit.xibuild
diff options
context:
space:
mode:
Diffstat (limited to 'repo/libgit/libgit.xibuild')
-rw-r--r--repo/libgit/libgit.xibuild39
1 files changed, 39 insertions, 0 deletions
diff --git a/repo/libgit/libgit.xibuild b/repo/libgit/libgit.xibuild
new file mode 100644
index 0000000..f471d3b
--- /dev/null
+++ b/repo/libgit/libgit.xibuild
@@ -0,0 +1,39 @@
+#!/bin/sh
+
+NAME="libgit"
+DESC="linkable library for Git"
+
+MAKEDEPS="http-parser"
+
+PKG_VER=1.4.3
+SOURCE="https://github.com/libgit2/libgit2/archive/v$PKG_VER.tar.gz"
+
+prepare() {
+ mkdir -p "$BUILD_ROOT"/build
+}
+
+build() {
+ cd "$BUILD_ROOT"/build
+
+ cmake .. \
+ -DCMAKE_BUILD_TYPE=None \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DUSE_HTTP_PARSER=system \
+ -DUSE_HTTPS=OpenSSL \
+ -DREGEX_BACKEND=pcre \
+ -DUSE_BUNDLED_ZLIB=OFF \
+ -DUSE_SSH=ON \
+ -DCMAKE_C_FLAGS="$CFLAGS"
+ make
+}
+
+check() {
+ cd "$BUILD_ROOT"/build
+ ctest -E 'offline|online'
+}
+
+package() {
+ cd "$BUILD_ROOT"
+ make -C build DESTDIR="$PKG_DEST" install
+}