# Contributor: Sören Tempel # Contributor: Pierre-Gilas MILLON # Maintainer: Natanael Copa pkgname=libgit2 pkgver=0.24.3 pkgrel=1 pkgdesc="A linkable library for Git" url="https://libgit2.github.com/" arch="all" license="GPLv2" depends="" depends_dev="curl-dev libssh2-dev" makedepends="$depends_dev python2 cmake zlib-dev libressl-dev" subpackages="$pkgname-dev" 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" builddir="$srcdir/$pkgname-$pkgver" # secfixes: # 0.24.3-r0: # - CVE-2016-8568 # - CVE-2016-8569 build() { cd "$builddir" cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ || return 1 make || return 1 } package() { make DESTDIR="$pkgdir" \ -C "$builddir" install || return 1 } md5sums="df626711b16bd5e7021123cbf1655399 libgit2-0.24.3.tar.gz" sha256sums="0a24e6a51dbf3beecb0ebcd2cafb1e09b1212e910be6477b5de03c84a5586754 libgit2-0.24.3.tar.gz" sha512sums="cb7b482664a5527e2d7c8f7c98755fd578f5331bc39fa2a5c8b841508e075b06b936f2c4a55cb4d10fe5d1677b596387bb16d68c220f1f23fce0a894b092f8c4 libgit2-0.24.3.tar.gz"