# Maintainer: Natanael Copa pkgname=mercurial pkgver=3.3 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="9d158d96aef4ad02cc3c15509257d13b mercurial-3.3.tar.gz" sha256sums="306a084b166ab3d01a0d8a2e1b80208fd7c7f71dc46d485d47a9c5c021e9dc77 mercurial-3.3.tar.gz" sha512sums="96d3ad32b51d3a32a0610e36d410b5370b06c7f0746cee3d3b119c2faf864e0cc089b0e0992c6dd4c660a727e22b9e13ce94fcc98ab9b2a57b8e521d8e4a678e mercurial-3.3.tar.gz"