python-texttable: update to 1.3.1
[void-packages.git] / srcpkgs / libgit2 / template
blob98c5ab63b537047dae63323f42c22130a7b485a0
1 # Template file for 'libgit2'
2 pkgname=libgit2
3 version=0.26.4
4 revision=1
5 build_style=cmake
6 hostmakedepends="python git pkg-config"
7 makedepends="zlib-devel libressl-devel http-parser-devel libssh2-devel"
8 short_desc="The Git linkable library"
9 maintainer="Juan RP <xtraeme@voidlinux.eu>"
10 license="GPL-2.0-or-later WITH GCC-exception-2.0"
11 homepage="http://libgit2.github.com/"
12 distfiles="https://github.com/libgit2/libgit2/archive/v${version}.tar.gz"
13 checksum=292fa2600bbb4e52641793cfcc1c19ffc0bf97b5fd8378d422a6bfe7afffcb97
14 configure_args="-DTHREADSAFE=ON"
16 case "$XBPS_TARGET_MACHINE" in
17         *-musl)
18                 # Don't use qsort_r, see src/util.c
19                 CFLAGS="-D__ANDROID_API__"
20                 ;;
21 esac
23 libgit2-devel_package() {
24         depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
25         short_desc+=" - development files"
26         pkg_install() {
27                 vmove usr/include
28                 vmove usr/lib/pkgconfig
29                 vmove "usr/lib/*.so"
30         }