blob: 948a7dd1b6fbe9f4cfc8c4c733a8c59133e69e89 (
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.7
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="61093c08ca5d8d1310382d17764f0c43 mercurial-2.7.tar.gz"
sha256sums="f56267e254efa755202c8ed447bb6b92a1bc275d8a7c6ca3d70b471b0677bcfa mercurial-2.7.tar.gz"
sha512sums="e425778edb0f71c34e719e04561ee3de37feaa1be4d60b94c780aebdbe6d41f8f4ab15103a8bbe8894ebeb228c42f0e2cd41b8db840f8384e1cd7cd2d5b67b97 mercurial-2.7.tar.gz"
|