# Contributor (Arch): Peter Simons <simons@cryp.to>
# Contributor (Arch): Nicolas Pouillard <nicolas.pouillard@gmail.com>
pkgname=setuptools_darcs
pkgver=1.2.11
pkgrel=3.1
pkgdesc="Python setuptools plugin for darcs"
arch=('any')
url='http://pypi.python.org/pypi/setuptools_darcs'
license=('BSD')
depends=('python2' 'setuptools')
makedepends=('darcsver')
source=( http://pypi.python.org/packages/source/s/$pkgname/$pkgname-$pkgver.tar.gz )
md5sums=('79451a8e77b9692861a655e53df094f0')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  python2 setup.py build
}

check() {
  cd "$srcdir/$pkgname-$pkgver"
  python2 setup.py test
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  python2 setup.py install --root="$pkgdir"
  install -Dm644 PKG-INFO $pkgdir/usr/share/licenses/$pkgname/LICENSE
}