void-packages/srcpkgs/libgit2/template
2019-06-12 16:31:34 +02:00

31 lines
890 B
Bash

# Template file for 'libgit2'
pkgname=libgit2
version=0.28.2
revision=2
build_style=cmake
configure_args="-DTHREADSAFE=ON"
hostmakedepends="python git pkg-config"
makedepends="zlib-devel libressl-devel http-parser-devel libssh2-devel libuv-devel"
short_desc="Git linkable library"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later WITH GCC-exception-2.0"
homepage="https://libgit2.org"
distfiles="https://github.com/libgit2/libgit2/archive/v${version}.tar.gz"
checksum=42b5f1e9b9159d66d86fff0394215c5733b6ef8f9b9d054cdd8c73ad47177fc3
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"
}
}