void-packages/srcpkgs/libgit2/template
maxice8 13471aefd0
libgit2: update to 0.26.4.
Closes #15109.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-06-14 12:33:14 +02:00

31 lines
888 B
Bash

# Template file for 'libgit2'
pkgname=libgit2
version=0.26.4
revision=1
build_style=cmake
hostmakedepends="python git pkg-config"
makedepends="zlib-devel libressl-devel http-parser-devel libssh2-devel"
short_desc="The Git linkable library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later WITH GCC-exception-2.0"
homepage="http://libgit2.github.com/"
distfiles="https://github.com/libgit2/libgit2/archive/v${version}.tar.gz"
checksum=292fa2600bbb4e52641793cfcc1c19ffc0bf97b5fd8378d422a6bfe7afffcb97
configure_args="-DTHREADSAFE=ON"
case "$XBPS_TARGET_MACHINE" in
*-musl)
# Don't use qsort_r, see src/util.c
CFLAGS="-D__ANDROID_API__"
;;
esac
libgit2-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}