# $Id: PKGBUILD 88415 2013-04-17 09:17:05Z thestinger $ # Maintainer: Daniel Micay # Contributor: Hilton Medeiros # Contributor: Dave Reisner pkgname=libgit2 pkgver=0.18.0 pkgrel=1 pkgdesc="A linkable library for Git" arch=('i686' 'x86_64' 'mips64el') url="http://libgit2.github.com/" depends=(zlib openssl) makedepends=(cmake python) license=('GPL2') source=("src-$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/tarball/v$pkgver") md5sums=('50409ddb0c34713677b33ef617e92c94') build() { cd $pkgname-* export LANG=en_US.UTF-8 cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DTHREADSAFE=ON make } check() { cd $pkgname-* make test } package() { cd $pkgname-* make DESTDIR="$pkgdir" install }