summaryrefslogtreecommitdiff
path: root/community/libgit2/PKGBUILD
blob: 7d1f23fd87d5962fe6d7d58754cd86882305a46a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# $Id: PKGBUILD 104861 2014-01-27 17:22:44Z thestinger $
# Maintainer: Daniel Micay <danielmicay@gmail.com>
# Contributor: Hilton Medeiros <medeiros.hilton@gmail.com>
# Contributor: Dave Reisner <d@falconindy.com>

pkgname=libgit2
pkgver=0.20.0
pkgrel=1
pkgdesc="A linkable library for Git"
arch=('i686' 'x86_64')
url="http://libgit2.github.com/"
depends=(zlib openssl libssh2)
makedepends=(cmake python)
license=('GPL2')
source=("https://github.com/libgit2/libgit2/archive/v${pkgver}.tar.gz")
md5sums=('e35f613a37e11354f34249f2faa68237')

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
}