vp-build/srcpkgs/libgit2/template
2015-07-08 09:12:13 +02:00

31 lines
846 B
Bash

# Template file for 'libgit2'
pkgname=libgit2
version=0.23.0
revision=1
build_style=cmake
hostmakedepends="cmake 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>"
homepage="http://libgit2.github.com/"
license="GPL-2 with Linking Exception"
distfiles="https://github.com/libgit2/libgit2/archive/v${version}.tar.gz"
checksum=49d75c601eb619481ecc0a79f3356cc26b89dfa646f2268e434d7b4c8d90c8a1
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"
}
}