# Contributor: Sergei Lukin # Contributor: Sören Tempel # Contributor: Pierre-Gilas MILLON # Maintainer: Natanael Copa pkgname=libgit2 pkgver=0.27.0 pkgrel=0 pkgdesc="A linkable library for Git" url="https://libgit2.github.com/" arch="all" license="GPL-2.0-only-WITH-GCC-exception-2.0" depends_dev="curl-dev libssh2-dev" makedepends="$depends_dev python2 cmake zlib-dev libressl-dev" subpackages="$pkgname-dev $pkgname-tests::noarch" provides="$pkgname-libs" # for backward compatibility with v3.4 replaces="$pkgname-libs" # for backward compatibility with v3.4 source="$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/v$pkgver.tar.gz libressl-2.7.patch build-both-static-dynamic.patch " options="!check" # FIXME some tests fails builddir="$srcdir/$pkgname-$pkgver" # secfixes: # 0.25.1-r0: # - CVE-2016-10128 # - CVE-2016-10129 # - CVE-2016-10130 # 0.24.3-r0: # - CVE-2016-8568 # - CVE-2016-8569 build() { mkdir -p "$builddir"/build cd "$builddir"/build cmake .. \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_C_FLAGS="$CFLAGS" make } check() { cd "$builddir"/build make test } package() { cd "$builddir"/build make DESTDIR="$pkgdir" install } tests() { pkgdesc="$pkgdesc (tests)" mkdir -p "$subpkgdir"/usr/src/$pkgname/ cp -a "$builddir"/tests "$subpkgdir"/usr/src/$pkgname/ } sha512sums="1304f0b6182e1e6e7fccbec1a568aefb662e144a1aea4fff5901f3c012ff0f3d28720f17d19b9a1bc6c892c32fe602766fe98a15538a94a468d65d3e4a1680ca libgit2-0.27.0.tar.gz 274746c3ba20309a1d4a53e9843fd411abb06e7dbc5a16c179757522c395f11f54d49358e73513be3fe7e857b5b547cf6c4cfaf79963518e75c8849a41f2cfef libressl-2.7.patch dab2acb9a2e8a2d372ed3819edf939445a7ed626a17eec613aeb827835703f37311c4136863605b547960d10844a753a3106f5ad22a20e0aee9f2b14f4ddf5eb build-both-static-dynamic.patch"