# Maintainer: Natanael Copa pkgname=mercurial pkgver=3.2.2 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="51305e11767a4c334a1e685c1f8f42b5 mercurial-3.2.2.tar.gz" sha256sums="afdef765e260d96f7a168d913ced15e0b0673fd7f7508dae3a81b5c7845a218c mercurial-3.2.2.tar.gz" sha512sums="a80d8a75f917b113634b581bea05616b16a8f8dc101b68cb06ea8ab4ac5c41dce66e166c7a67aa4b8cd1f0309e4e9a9654b85891ec0b231516c1fcf211a07c30 mercurial-3.2.2.tar.gz"