# Maintainer: Natanael Copa pkgname=mercurial pkgver=3.2.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="ca6d1a0b0fd255fb1b9fb3fa46a856b8 mercurial-3.2.3.tar.gz" sha256sums="c4369320e276d78aada1b5936e96c7bbbbb8154cfba725ef4e8757dcedeaf1ef mercurial-3.2.3.tar.gz" sha512sums="eba8e9a1f807132614d2229a6ed38840aa55a80859a504c8fa7c500572e73a1b8a33d4a26ec0e1b9c0202f5ec592d29bf4b6bd1d95f069d2ecda342d28e31569 mercurial-3.2.3.tar.gz"