# Maintainer: Christoph Reiter <reiter.christoph@gmail.com>

_realname=fastimport
pkgbase="python-${_realname}"
pkgname=("python-${_realname}")
pkgver=0.9.8
pkgrel=3
pkgdesc="VCS fastimport/fastexport parser"
arch=('any')
license=('GPL')
url="https://pypi.python.org/pypi/fastimport/"
depends=('python')
makedepends=('python-setuptools')
source=("https://pypi.org/packages/source/${_realname::1}/${_realname}/${_realname}-${pkgver}.tar.gz")
sha256sums=('b2f2e8eb97000256e1aab83d2a0a053fc7b93c3aa4f7e9b971a5703dfc5963b9')

build() {
  cd "${srcdir}/${_realname}-${pkgver}"
  /usr/bin/python setup.py build
}

package() {
  cd "${srcdir}/${_realname}-${pkgver}"
  /usr/bin/python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
}
