aboutsummaryrefslogtreecommitdiffstats
path: root/main/mercurial/APKBUILD
blob: 64c98a6f56bba1d3b64b69549264dcf85ac5f8c0 (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
29
30
31
32
33
34
35
36
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mercurial
pkgver=3.4.2
pkgrel=0
pkgdesc="A scalable distributed SCM tool"
url="http://www.selenic.com/mercurial"
arch="all"
license="GPL2+"
depends=""
makedepends="python-dev"
subpackages="$pkgname-doc"
source="http://www.selenic.com/$pkgname/release/$pkgname-$pkgver.tar.gz"

_builddir="$srcdir"/$pkgname-$pkgver
build() {
	cd "$_builddir"
	python setup.py build || return 1
}

package() { 
	cd "$_builddir"
	python setup.py install --root="$pkgdir" || return 1
	install -d "$pkgdir"/usr/share/man/man1 "$pkgdir"/usr/share/man/man5
	install -m644 doc/hg.1 ""$pkgdir"/usr/share/man/man1" || return 1
	install -m644 doc/hgrc.5 doc/hgignore.5 "$pkgdir"/usr/share/man/man5 \
		|| return 1
	install -m755 contrib/hgk "$pkgdir"/usr/bin || return 1
	install -m644 -D contrib/bash_completion \
		"$pkgdir"/etc/bash_completion.d/hg || return 1
	vimpath="$pkgdir"/usr/share/vim/vimfiles
	install -Dm644 contrib/vim/HGAnnotate.vim \
		"${vimpath}/syntax/HGAnnotate.vim" || return 1
}
md5sums="0b0a63bfbc22d399f42f56fc65c5394b  mercurial-3.4.2.tar.gz"
sha256sums="dcc90e4a8476149ecc8af13c08202860b4c9c987a94c4f3c18b28294b6fd8ecd  mercurial-3.4.2.tar.gz"
sha512sums="f5ef7064a1ac4189fe4db91fec283cdead257b132674d0869f075b80ba5707e0163e28f18545a9d867336ebc6b1cbb8bcf794b6881b8f23f6c067e68c7ae584b  mercurial-3.4.2.tar.gz"