summaryrefslogtreecommitdiff
path: root/community/libgit2/PKGBUILD
blob: af2115029976a708ed990d3803ce1ece7fa2647b (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
# $Id$
# Maintainer: Daniel Micay <danielmicay@gmail.com>
# Contributor: Hilton Medeiros <medeiros.hilton@gmail.com>
# Contributor: Dave Reisner <d@falconindy.com>

pkgname=libgit2
pkgver=0.17.0
pkgrel=2
pkgdesc="A linkable library for Git"
arch=('i686' 'x86_64' 'mips64el')
url="http://libgit2.github.com/"
depends=('zlib')
makedepends=(cmake python)
license=('GPL2')
source=("src-$pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/tarball/v$pkgver")
md5sums=('5a09dd1118d1354375407119d19e0f2c')

build() {
  cd "$srcdir"/$pkgname-*
  cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
  make
}

package() {
  cd "$srcdir"/$pkgname-*
  make DESTDIR="$pkgdir" install
}