Commit 6fe5c97a authored by Jeff Huang's avatar Jeff Huang 😕

[skip-ci] mercurial: update to 4.9

parent adf0a9bc
Pipeline #2831 skipped
pkgname=mercurial
pkgver=4.7.2
pkgver=4.9
pkgrel=1
pkgdesc="A scalable distributed SCM tool"
arch=('x86_64')
......@@ -10,12 +10,12 @@ optdepends=('tk: for the hgk GUI')
backup=('etc/mercurial/hgrc')
source=("https://www.mercurial-scm.org/release/${pkgname}-${pkgver}.tar.gz"
'mercurial.profile')
md5sums=('7a6701f78ce4ce62a16c9921c7903eed'
'43e1d36564d4c7fbe9a091d3ea370a44')
sha256sums=('0f600c5c7e44d4318bedc1754a70b920f7ecd278e4089b0f6ac96f460c012f06'
'87427151713e689cd87dc50d50c048e0e58285815e4eb61962b50583532cbde5')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed -i -e 's#env python#env python2#' mercurial/lsprof.py
sed -i -e 's#env python#env python2#' mercurial/lsprof.py contrib/hg-ssh
}
build() {
......@@ -29,15 +29,19 @@ package() {
install -d ${pkgdir}/usr/share/man/{man1,man5}
install -m644 doc/hg.1 "${pkgdir}/usr/share/man/man1"
install -m644 doc/{hgrc.5,hgignore.5} "${pkgdir}/usr/share/man/man5"
install -m755 contrib/hgk "${pkgdir}/usr/bin"
install -m644 doc/{hgrc.5,hgignore.5} "${pkgdir}/usr/share/man/man5"
install -m644 -D contrib/zsh_completion "${pkgdir}/usr/share/zsh/site-functions/_hg"
install -m644 -D contrib/bash_completion "${pkgdir}/etc/bash_completion.d/hg"
make -C contrib/chg DESTDIR="$pkgdir" PREFIX=/usr install
install -m755 contrib/hg-ssh "$pkgdir/usr/bin"
install -m755 contrib/hgk "$pkgdir/usr/bin"
install -d "${pkgdir}/usr/share/emacs/site-lisp"
install -m644 contrib/{mq.el,mercurial.el} "${pkgdir}/usr/share/emacs/site-lisp"
vimpath="${pkgdir}/usr/share/vim/vimfiles"
install -Dm644 contrib/vim/HGAnnotate.vim "${vimpath}/syntax/HGAnnotate.vim"
install -Dm644 contrib/vim/HGAnnotate.vim \
"$pkgdir/usr/share/vim/vimfiles/syntax/HGAnnotate.vim"
# set some variables
install -m755 -d ${pkgdir}/etc/profile.d
......@@ -49,7 +53,4 @@ package() {
[web]
cacerts = /etc/ssl/certs/ca-certificates.crt
EOF
cd contrib/chg
make DESTDIR="$pkgdir" PREFIX=/usr install
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment