void-packages/srcpkgs/mercurial/template
2018-05-21 12:47:52 +02:00

26 lines
939 B
Bash

# Template file for 'mercurial'
pkgname=mercurial
version=4.6
revision=1
build_style=python2-module
hostmakedepends="python-devel"
makedepends="python-devel"
depends="ca-certificates"
pycompile_module="hgdemandimport hgext hgext3rd mercurial"
short_desc="Fast, lightweight source control management system"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2.0-or-later"
homepage="https://www.mercurial-scm.org/"
distfiles="https://www.mercurial-scm.org/release/mercurial-${version}.tar.gz"
checksum=56ae3b10201adae37ad97fbd759cf3cea4ebe64c57641c059978c7a706ee6b49
post_install() {
vmkdir usr/share/man/man1
vmkdir usr/share/man/man5
install -m644 doc/*.1 ${DESTDIR}/usr/share/man/man1
install -m644 doc/*.5 ${DESTDIR}/usr/share/man/man5
install -m644 -D contrib/bash_completion \
${DESTDIR}/usr/share/bash-completion/completions/hg
install -m644 -D contrib/zsh_completion \
${DESTDIR}/usr/share/zsh/site-functions/_hg
}