2013-05-05 05:52:37 +02:00
|
|
|
# Template file for 'libgit2'
|
|
|
|
pkgname=libgit2
|
2015-07-08 13:01:21 +02:00
|
|
|
reverts=0.23.0_1
|
2015-07-08 13:00:55 +02:00
|
|
|
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
|
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-07-08 13:00:55 +02:00
|
|
|
checksum=511fe60e7c12c3525b4e0489861e5c1fe0e331d604bee9a3dfb8420c2f288f60
|
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
|
|
|
}
|
|
|
|
}
|