blob: 8eb2d27b9b0145728f2575c44aa573a64964b07f (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mercurial
pkgver=3.8.3
pkgrel=0
pkgdesc="A scalable distributed SCM tool"
url="https://www.mercurial-scm.org/"
arch="all"
license="GPL2+"
depends=""
makedepends="python-dev"
subpackages="
$pkgname-doc
$pkgname-vim:vim
$pkgname-zsh-completion:zshcomp
$pkgname-bash-completion:bashcomp"
source="https://www.mercurial-scm.org/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 -m755 contrib/hgk hgeditor "$pkgdir"/usr/bin || return 1
for man in doc/*.?; do
install -Dm644 "$man" \
"$pkgdir"/usr/share/man/man${man##*.}/${man##*/} || return 1
done
}
vim() {
depends=""
pkgdesc="Vim syntax for $pkgname"
install_if="vim $pkgname=$pkgver-r$pkgrel"
arch="noarch"
cd "$_builddir"/contrib/vim/
mkdir -p "$subpkgdir"/usr/share/vim/vimfiles/syntax/
install -Dm644 HGAnnotate.vim hgtest.vim \
"$subpkgdir"/usr/share/vim/vimfiles/syntax/ || return 1
}
zshcomp() {
depends=""
pkgdesc="Zsh completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel zsh"
arch="noarch"
install -Dm644 "$_builddir"/contrib/zsh_completion \
"$subpkgdir"/usr/share/zsh/site-functions/_${pkgname} || return 1
}
bashcomp() {
depends=""
pkgdesc="Bash completions for $pkgname"
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
arch="noarch"
install -Dm644 "$_builddir"/contrib/bash_completion \
"$subpkgdir"/usr/share/bash-completion/completions/${pkgname} || return 1
}
md5sums="97aced7018614eeccc9621a3dea35fda mercurial-3.8.3.tar.gz"
sha256sums="f84556cdf9a331984261549d9d08143ab9da33d7c03f0aa323b0ee52d0782a4c mercurial-3.8.3.tar.gz"
sha512sums="d6106fe942406fa3fe85039fa67ca47659b934cf2a027dfe24bfaff2f26130051ea1ee6064b30648769a12c4d6c7de2764463fb29a8194f50d79bcd63a4c5246 mercurial-3.8.3.tar.gz"
|