aboutsummaryrefslogtreecommitdiffstats
path: root/main/mercurial/APKBUILD
blob: 5d63271bb8b16d1e013d392f27294fccacf5986f (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=2.5.1
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="18bee60e0cb3aa9c0c59bb11930f5f51  mercurial-2.5.1.tar.gz"
sha256sums="96688c49ee6cbf2809d0925f1ee797a9211f4ed735233d789cabfabaac221859  mercurial-2.5.1.tar.gz"
sha512sums="91693ca5f34934956a7c2c98bb69a5648b2a5660afd2ecf4a05035c5420450d42c194eeef0606d7683e267e4eaaaab414df23f30b34c88219bdd5c1a0f1f66ed  mercurial-2.5.1.tar.gz"