~dricottone/huttese-apk

ref: 4e02f3cdb09d90eaf16aa12328e0d2fa193ff12f huttese-apk/sr.ht/mercurial/APKBUILD -rw-r--r-- 1.8 KiB
4e02f3cd — Drew DeVault prometheus: add reload function 4 years ago
                                                                                
79642cde Drew DeVault
b5f75d9f Ludovic Chabant
63ccd2c8 Drew DeVault
79642cde Drew DeVault
b5f75d9f Ludovic Chabant
79642cde Drew DeVault
b5f75d9f Ludovic Chabant
79642cde Drew DeVault
b5f75d9f Ludovic Chabant
79642cde Drew DeVault
b5f75d9f Ludovic Chabant
79642cde Drew DeVault
b5f75d9f Ludovic Chabant
79642cde Drew DeVault
b5f75d9f Ludovic Chabant
79642cde Drew DeVault
b5f75d9f Ludovic Chabant
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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=mercurial
pkgver=5.1.2
pkgrel=1
pkgdesc="Scalable distributed SCM tool"
url="https://www.mercurial-scm.org"
arch="all"
license="GPL-2.0-or-later"
makedepends="python3-dev"
subpackages="
	$pkgname-doc
	$pkgname-vim:vim:noarch
	$pkgname-zsh-completion:zshcomp:noarch
	$pkgname-bash-completion:bashcomp:noarch
	"
source="https://www.mercurial-scm.org/release/mercurial-$pkgver.tar.gz"

# secfixes:
#   4.9-r0:
#   - CVE-2019-3902

build() {
	cd "$builddir"
	PYTHON=python3 HGPYTHON3=1 python3 setup.py build
}

package() {
	cd "$builddir"
	PYTHON=python3 HGPYTHON3=1 python3 setup.py install --root="$pkgdir"
	install -m755 contrib/hgk contrib/hg-ssh hgeditor "$pkgdir"/usr/bin

	local man
	for man in doc/*.?; do
		install -Dm644 "$man" \
			"$pkgdir"/usr/share/man/man${man##*.}/${man##*/}
	done
}

vim() {
	depends=""
	pkgdesc="Vim syntax for $pkgname"
	install_if="vim $pkgname=$pkgver-r$pkgrel"

	cd "$builddir"/contrib/vim/
	mkdir -p "$subpkgdir"/usr/share/vim/vimfiles/syntax/
	install -Dm644 HGAnnotate.vim hgtest.vim \
		"$subpkgdir"/usr/share/vim/vimfiles/syntax/
}

zshcomp() {
	depends=""
	pkgdesc="Zsh completion for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel zsh"

	install -Dm644 "$builddir"/contrib/zsh_completion \
		"$subpkgdir"/usr/share/zsh/site-functions/_$pkgname
}

bashcomp() {
	depends=""
	pkgdesc="Bash completion for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	install -Dm644 "$builddir"/contrib/bash_completion \
		"$subpkgdir"/usr/share/bash-completion/completions/$pkgname
}

sha512sums="a8ce9d9220a5ddf452264801f06e81fe1e699ff700d085e3f82c6877910c6ef0e594203590f198b7b9e31c9a1ed627c8fa2a3a1513d0c5087cf775835a78c408  mercurial-5.1.2.tar.gz"