summaryrefslogtreecommitdiff
path: root/repo/mercurial/mercurial.xibuild
blob: 3855b88c9f16dbf2c49851480575455989a4a8ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh

NAME="mercurial"
DESC="Scalable distributed SCM tool"

MAKEDEPS="python"

PKG_VER=6.1.4
SOURCE="https://www.mercurial-scm.org/release/mercurial-$PKG_VER.tar.gz"

ADDITIONAL="
blacklist.txt
"

build() {
	HGPYTHON3=1 python3 setup.py build
}

package() {
	HGPYTHON3=1 python3 setup.py install --root="$PKG_DEST"
	install -m755 contrib/hgk contrib/hg-ssh hgeditor "$PKG_DEST"/usr/bin

	local man
	for man in doc/*.?; do
		install -Dm644 "$man" \
			"$PKG_DEST"/usr/share/man/man${man##*.}/${man##*/}
	done
}