void-packages/srcpkgs/libgit2/template

32 lines
867 B
Bash
Raw Normal View History

2013-05-05 05:52:37 +02:00
# Template file for 'libgit2'
pkgname=libgit2
reverts=0.23.0_1
version=0.22.3
2015-08-06 10:33:58 +02:00
revision=4
2014-02-20 17:45:19 +01:00
build_style=cmake
hostmakedepends="cmake python git pkg-config"
makedepends="zlib-devel libressl-devel http-parser-devel libssh2-devel"
2013-05-05 05:52:37 +02:00
short_desc="The Git linkable library"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
2013-05-05 05:52:37 +02:00
homepage="http://libgit2.github.com/"
license="GPL-2 with Linking Exception"
2015-06-25 07:18:13 +02:00
distfiles="https://github.com/libgit2/libgit2/archive/v${version}.tar.gz"
checksum=511fe60e7c12c3525b4e0489861e5c1fe0e331d604bee9a3dfb8420c2f288f60
2013-05-05 05:52:37 +02:00
case "$XBPS_TARGET_MACHINE" in
*-musl)
# Don't use qsort_r, see src/util.c
CFLAGS="-D__ANDROID_API__"
;;
esac
2013-05-05 05:52:37 +02:00
libgit2-devel_package() {
2014-07-15 18:27:22 +02:00
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
2013-05-05 05:52:37 +02:00
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
2014-02-20 17:45:19 +01:00
vmove "usr/lib/*.so"
2013-05-05 05:52:37 +02:00
}
}