summaryrefslogtreecommitdiff
path: root/repo/mercurial/mercurial.xibuild
blob: fb2a378a50c2775a1b64594d513dc4f1b4889f1b (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.1
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
}