They released libgit2 1.9.1, so I guess I'll adopt the package after all so I can keep it up to date... I've pushed to the playground branch now.
https://github.com/cygwin/scallywag/actions/runs/15505200622
inherit cmake NAME="libgit2" VERSION=1.9.1 RELEASE=1 CATEGORY="Libs" SUMMARY="Git C library" DESCRIPTION="libgit2 is a portable, pure C implementation of the Git core methods provided as a re-entrant linkable library with a solid API, allowing you to write native speed custom Git applications in any language which supports C bindings." HOMEPAGE="https://libgit2.org/" LICENSE="LicenseRef-Callaway-GPLv2-with-exceptions" SRC_URI="https://github.com/libgit2/libgit2/archive/v${VERSION}/libgit2-${VERSION}.tar.gz" SRC_DIR="libgit2-${VERSION}" PATCH_URI= BUILD_REQUIRES="cygutils-extra libpcre2-devel libssh2-devel libssl-devel zlib-devel" CYGCMAKE_ARGS="-DUSE_SSH=ON -DUSE_ICONV=ON -DREGEX_BACKEND=pcre2" src_test() { cd ${B} find . -path '*/test.dir/utility.sh' -exec sed -i -e 's/\$(ARGS)/${ARGS}/' '{}' + cygdrop ctest -V || true } PKG_NAMES="libgit2_1.9 libgit2-devel" libgit2_1_9_CONTENTS="usr/bin/cyggit2-1.9.dll usr/share/doc/" libgit2_devel_CONTENTS="usr/bin/git2.exe usr/include/git2* usr/lib/cmake/libgit2/ usr/lib/libgit2.dll.a usr/lib/pkgconfig/libgit2.pc" DIFF_EXCLUDES=".clarcache clar.suite"