aboutsummaryrefslogtreecommitdiffstats
path: root/main/mercurial/APKBUILD
blob: 587e971374feb96c4db5f6162b0add2a4fad2137 (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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mercurial
pkgver=1.8.1
pkgrel=0
pkgdesc="A scalable distributed SCM tool"
url="http://www.selenic.com/mercurial"
arch="all"
license="GPL"
depends="python"
makedepends="python-dev"
subpackages="$pkgname-doc"
source="http://www.selenic.com/$pkgname/release/$pkgname-$pkgver.tar.gz"

build() {
	cd "$srcdir"/$pkgname-$pkgver
	python setup.py build
}

package() { 
	cd "$srcdir"/$pkgname-$pkgver
	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="e0a8cfca69aa4003ea3187aed609d5e0  mercurial-1.8.1.tar.gz"