1 # Template file for 'libgit2'
6 hostmakedepends="python git pkg-config"
7 makedepends="zlib-devel libressl-devel http-parser-devel libssh2-devel"
8 short_desc="The Git linkable library"
9 maintainer="Juan RP <xtraeme@voidlinux.eu>"
10 license="GPL-2.0-or-later WITH GCC-exception-2.0"
11 homepage="http://libgit2.github.com/"
12 distfiles="https://github.com/libgit2/libgit2/archive/v${version}.tar.gz"
13 checksum=292fa2600bbb4e52641793cfcc1c19ffc0bf97b5fd8378d422a6bfe7afffcb97
14 configure_args="-DTHREADSAFE=ON"
16 case "$XBPS_TARGET_MACHINE" in
18 # Don't use qsort_r, see src/util.c
19 CFLAGS="-D__ANDROID_API__"
23 libgit2-devel_package() {
24 depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
25 short_desc+=" - development files"
28 vmove usr/lib/pkgconfig