blob: 0dd5ddc9c5a8abb638c2cc2a8dd7267a85a170be (
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.2.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="8dd4822d5aaee25be4484583ada018c5 mercurial-3.2.1.tar.gz"
sha256sums="26418276fbc36850782f1f4feb30da4a83800b48493082985c4d3ac29ad0ca0f mercurial-3.2.1.tar.gz"
sha512sums="d104d8a3c4b78bd2416276e5ead0ff0e3d1af13fa1910f246e7fe9dfdd0fc074f67bd08cfffd9df2b9e9fe9ba7b924dae8c45ba5d20711162b7ef9d3dcaceaf7 mercurial-3.2.1.tar.gz"
|