diff options
author | davidovski <david@davidovski.xyz> | 2022-06-09 14:35:52 +0100 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-06-09 14:35:52 +0100 |
commit | d1fc3393cca72e8e432f827f7624e38734fad6dc (patch) | |
tree | 7b971fbfc203ff017ad78852476bfcccee170971 /repo/libgit | |
parent | ccc722b7ed330198d82a3cf28ead76d6d107a70a (diff) |
moved firmware to separate pacakges
Diffstat (limited to 'repo/libgit')
-rw-r--r-- | repo/libgit/libgit.xibuild | 39 |
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 +} |