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
|
2015-06-07 16:52:33 +02:00
|
|
|
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"
|
2015-04-10 09:16:30 +02:00
|
|
|
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
|
|
|
|
2015-06-07 16:52:33 +02:00
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
2015-07-08 13:00:55 +02:00
|
|
|
*-musl)
|
|
|
|
# Don't use qsort_r, see src/util.c
|
|
|
|
CFLAGS="-D__ANDROID_API__"
|
|
|
|
;;
|
2015-06-07 16:52:33 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|