# Contributor: Sören Tempel # Maintainer: Natanael Copa setglobal pkgname = 'mercurial' setglobal pkgver = '4.3.3' setglobal pkgrel = '0' setglobal pkgdesc = '"A scalable distributed SCM tool'" setglobal url = '"https://www.mercurial-scm.org/'" setglobal arch = '"all'" setglobal license = '"GPL2+'" setglobal depends = ''"" setglobal makedepends = '"python2-dev'" setglobal subpackages = "" $pkgname-doc $pkgname-vim:vim:noarch $pkgname-zsh-completion:zshcomp:noarch $pkgname-bash-completion:bashcomp:noarch"" setglobal source = ""https://www.mercurial-scm.org/release/$pkgname-$pkgver.tar.gz"" setglobal builddir = ""$srcdir"/$pkgname-$pkgver" proc build { cd $builddir python2 setup.py build } proc package { cd $builddir python2 setup.py install --root="$pkgdir" install -m755 contrib/hgk hgeditor "$pkgdir"/usr/bin for man in [doc/*.?] { install -Dm644 $man \ "$pkgdir"/usr/share/man/man$(man##*.)/$(man##*/) } } proc vim { setglobal depends = ''"" setglobal pkgdesc = ""Vim syntax for $pkgname"" setglobal install_if = ""vim $pkgname=$pkgver-r$pkgrel"" cd "$builddir"/contrib/vim/ mkdir -p "$subpkgdir"/usr/share/vim/vimfiles/syntax/ install -Dm644 HGAnnotate.vim hgtest.vim \ "$subpkgdir"/usr/share/vim/vimfiles/syntax/ } proc zshcomp { setglobal depends = ''"" setglobal pkgdesc = ""Zsh completions for $pkgname"" setglobal install_if = ""$pkgname=$pkgver-r$pkgrel zsh"" install -Dm644 "$builddir"/contrib/zsh_completion \ "$subpkgdir"/usr/share/zsh/site-functions/_$(pkgname) } proc bashcomp { setglobal depends = ''"" setglobal pkgdesc = ""Bash completions for $pkgname"" setglobal install_if = ""$pkgname=$pkgver-r$pkgrel bash-completion"" install -Dm644 "$builddir"/contrib/bash_completion \ "$subpkgdir"/usr/share/bash-completion/completions/$(pkgname) } setglobal sha512sums = '"2d5249b6b2ec6b21c548702af2cf6b8e0858197a370514465aa7a880391f2e9efd6aecefb67fc547dfb8759c1c678009dc5a33fc48743bee30fcbdd853ee1cc6 mercurial-4.3.3.tar.gz'"