From d1fc3393cca72e8e432f827f7624e38734fad6dc Mon Sep 17 00:00:00 2001 From: davidovski Date: Thu, 9 Jun 2022 14:35:52 +0100 Subject: moved firmware to separate pacakges --- repo/libgit/libgit.xibuild | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 repo/libgit/libgit.xibuild (limited to 'repo/libgit/libgit.xibuild') 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 +} -- cgit v1.2.1