# vim: syn=sh ft=sh et sw=2 sts=2 ts=2 tw=0:
#Packager: Cyrille Pontvieux <jrd~at~salixos~dot~org>

pkgname=pygit2
pkgver=0.20.2
pkgrel=1cp

source=(https://github.com/libgit2/${pkgname}/archive/v${pkgver}.tar.gz)
sourcetemplate=http://people.salixos.org/jrd/salix/$pkgname/$pkgver-\$arch-$pkgrel/
docs=("readme" "install" "copying" "changelog" "authors" "news" "todo")
url=https://github.com/libgit2/pygit2

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (libgit2 bindings in Python)"
"Pygit2 is a set of Python bindings to the libgit2 shared library,"
"libgit2 implements the core of Git."
"Pygit2 works with Python 2.6, 2.7, 3.1, 3.2 and 3.3"
)

build() {
  cd $SRC/$pkgname-$pkgver || return 1
  python setup.py install --prefix=/usr --root=$PKG || return 1
}
