summaryrefslogtreecommitdiffstats
path: root/main/mercurial/APKBUILD
blob: ca65764c365d2e9fcf0e0a13abd463fab45c6626 (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.0.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="c5be4265745a8140fec777a4dfc40e0e  mercurial-3.0.2.tar.gz"
sha256sums="ed387cc0e9754ec59bd4a390639b5a4ea11698ae4413243f8b4a2d6d48b3b7d6  mercurial-3.0.2.tar.gz"
sha512sums="3ccd2c8cbe42f929dbaa2921989c2686d60b6961d6ad32471a4fbc91f5594a2398df913dce0c12bac5f7dd81036442a044c0e2247025cd010ab5e3e2265d9926  mercurial-3.0.2.tar.gz"