milis/talimatname/genel/mercurial/talimat

46 lines
1.6 KiB
Plaintext
Raw Normal View History

2017-08-26 05:25:01 +02:00
# Description: Python'da yazılmış, Git ve Bazaar'a benzer,dağıtılmış bir kaynak denetim yönetimi aracıdır.
2016-02-24 01:27:23 +01:00
# URL: http://mercurial.selenic.com
2016-11-02 20:59:42 +01:00
# Packager: milisarge
2017-08-26 05:25:01 +02:00
# Depends on: python tk
2016-02-24 01:27:23 +01:00
name=mercurial
2017-08-26 05:25:01 +02:00
version=4.3.1
release=1
source=(https://www.mercurial-scm.org/release/mercurial-$version.tar.gz
mercurial.profile)
2016-02-24 01:27:23 +01:00
build() {
2017-08-26 05:25:01 +02:00
cd $name-$version
sed -i -e 's#env python#env python2#' mercurial/lsprof.py
cd contrib/chg
make
cd $SRC/${name}-${version}
python2 setup.py install --root="${PKG}/" --optimize=1
2016-02-24 01:27:23 +01:00
2017-08-26 05:25:01 +02:00
install -d ${PKG}/usr/share/man/{man1,man5}
install -m644 doc/hg.1 "${PKG}/usr/share/man/man1"
install -m644 doc/{hgrc.5,hgignore.5} "${PKG}/usr/share/man/man5"
install -m755 contrib/hgk "${PKG}/usr/bin"
install -m644 -D contrib/zsh_completion "${PKG}/usr/share/zsh/site-functions/_hg"
install -m644 -D contrib/bash_completion "${PKG}/usr/share/bash-completion/completions/hg"
install -d "${PKG}/usr/share/emacs/site-lisp"
install -m644 contrib/{mq.el,mercurial.el} "${PKG}/usr/share/emacs/site-lisp"
2016-02-24 01:27:23 +01:00
2017-08-26 05:25:01 +02:00
vimpath="${PKG}/usr/share/vim/vimfiles"
install -Dm644 contrib/vim/HGAnnotate.vim "${vimpath}/syntax/HGAnnotate.vim"
# set some variables
install -m755 -d ${PKG}/etc/profile.d
install -m755 ${SRC}/mercurial.profile "${PKG}/etc/profile.d/mercurial.sh"
# install configuration file
install -m755 -d ${PKG}/etc/mercurial
# install -m644 contrib/sample.hgrc "${PKG}/etc/mercurial/hgrc"
# FS#38825 - Add certs config to package
echo -e "\n[web]\ncacerts = /etc/ssl/certs/ca-certificates.crt\n" >> "${PKG}/etc/mercurial/hgrc"
cd contrib/chg
make DESTDIR="${PKG}" PREFIX=/usr install
2016-02-24 01:27:23 +01:00
}