# Maintainer: Natanael Copa pkgname=mercurial pkgver=3.5 pkgrel=0 pkgdesc="A scalable distributed SCM tool" url="http://www.selenic.com/mercurial" arch="all" license="GPL2+" depends="" makedepends="python-dev" subpackages="$pkgname-doc" source="http://www.selenic.com/$pkgname/release/$pkgname-$pkgver.tar.gz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" python setup.py build || return 1 } package() { cd "$_builddir" python setup.py install --root="$pkgdir" || return 1 install -d "$pkgdir"/usr/share/man/man1 "$pkgdir"/usr/share/man/man5 install -m644 doc/hg.1 ""$pkgdir"/usr/share/man/man1" || return 1 install -m644 doc/hgrc.5 doc/hgignore.5 "$pkgdir"/usr/share/man/man5 \ || return 1 install -m755 contrib/hgk "$pkgdir"/usr/bin || return 1 install -m644 -D contrib/bash_completion \ "$pkgdir"/etc/bash_completion.d/hg || return 1 vimpath="$pkgdir"/usr/share/vim/vimfiles install -Dm644 contrib/vim/HGAnnotate.vim \ "${vimpath}/syntax/HGAnnotate.vim" || return 1 } md5sums="3e3010e12759d3783ab7ed93de627da1 mercurial-3.5.tar.gz" sha256sums="b50f6978e7d39fe0cb298fa3fa3e9ce41d2356721d155e5288f9c57e5f13e9a7 mercurial-3.5.tar.gz" sha512sums="1944521d08b7c1cf6872edd5e394ebfad5f53f931b3bfb6197292c1c0f9e275b27f92284b91cf11bec8a50631468e1447d4e94f18a5b4ac237df61b0a1e5fd5a mercurial-3.5.tar.gz"