void-packages/srcpkgs/libgit2/template

31 lines
850 B
Bash
Raw Normal View History

2013-05-05 05:52:37 +02:00
# Template file for 'libgit2'
pkgname=libgit2
2015-10-07 12:30:22 +02:00
version=0.23.3
2015-08-21 22:34:37 +02:00
revision=1
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"
2015-10-07 12:30:22 +02:00
checksum=2d5c80426675928cda6e9a313ae38b2a72c1a55b7c3d4884dc21f7b312ff1eae
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
}
}