# vim: set syn=sh ai et sw=2 st=2 ts=2 tw=0:
#Packager: JRD <jrd@enialis.net>

pkgname=pygit2
pkgver=0.17.2
pkgrel=1cp
source=(https://github.com/libgit2/$pkgname/tarball/v$pkgver)
sourcetemplate=http://people.salixos.org/jrd/salix/$pkgname/$pkgver-\$arch-$pkgrel/
docs=("authors" "install" "readme" "copying")
url=https://github.com/libgit2/pygit2

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"$pkgname (libgit2 bindings in Python)"
"pygit2 is a set of Python bindings to the libgit2 linkable C Git"
"library."
"The supported versions of Python are 2.6, 2.7, 3.1 and 3.2"
)

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