void-packages/srcpkgs/mercurial/template

27 lines
969 B
Bash

# Template file for 'mercurial'
pkgname=mercurial
version=5.2
revision=1
build_style=python3-module
pycompile_module="hgdemandimport hgext hgext3rd mercurial"
hostmakedepends="python3 python3-setuptools python3-devel"
makedepends="python3-devel"
depends="ca-certificates"
short_desc="Fast, lightweight source control management system"
maintainer="Orphaned <orphan@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.mercurial-scm.org/"
distfiles="https://www.mercurial-scm.org/release/mercurial-${version}.tar.gz"
checksum=ff030e923f03ee15c91191996fcb099bfcfa60c7df263be227f67b6a65d36194
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
}