mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
67 lines
1.7 KiB
Plaintext
67 lines
1.7 KiB
Plaintext
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=mercurial
|
|
pkgver=4.6
|
|
pkgrel=0
|
|
pkgdesc="Scalable distributed SCM tool"
|
|
url="https://www.mercurial-scm.org"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
depends=""
|
|
makedepends="python2-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/$pkgname-$pkgver.tar.gz"
|
|
builddir="$srcdir"/$pkgname-$pkgver
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
python2 setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
python2 setup.py install --root="$pkgdir"
|
|
install -m755 contrib/hgk 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="2a7e94a338727afc97aab9c33ce4810a17088f5f477a83b581dcbf594e455062e69e6a3782f1665b24ffc011963b0eead6f7e637a63f241d256378d30b006c45 mercurial-4.6.tar.gz"
|