talimat 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Tanım: Python'da yazılmış, Git ve Bazaar'a benzer,dağıtılmış bir kaynak denetim yönetimi aracıdır.
  2. # URL: http://mercurial.selenic.com
  3. # Paketçi: milisarge
  4. # Gerekler: python tk
  5. # Grup: geliştirme
  6. isim=mercurial
  7. surum=4.3.1
  8. devir=1
  9. kaynak=(https://www.mercurial-scm.org/release/mercurial-$surum.tar.gz
  10. mercurial.profile)
  11. derle() {
  12. cd $isim-$surum
  13. sed -i -e 's#env python#env python2#' mercurial/lsprof.py
  14. cd contrib/chg
  15. make
  16. cd $SRC/${isim}-${surum}
  17. python2 setup.py install --root="${PKG}/" --optimize=1
  18. install -d ${PKG}/usr/share/man/{man1,man5}
  19. install -m644 doc/hg.1 "${PKG}/usr/share/man/man1"
  20. install -m644 doc/{hgrc.5,hgignore.5} "${PKG}/usr/share/man/man5"
  21. install -m755 contrib/hgk "${PKG}/usr/bin"
  22. install -m644 -D contrib/zsh_completion "${PKG}/usr/share/zsh/site-functions/_hg"
  23. install -m644 -D contrib/bash_completion "${PKG}/usr/share/bash-completion/completions/hg"
  24. install -d "${PKG}/usr/share/emacs/site-lisp"
  25. install -m644 contrib/{mq.el,mercurial.el} "${PKG}/usr/share/emacs/site-lisp"
  26. vimpath="${PKG}/usr/share/vim/vimfiles"
  27. install -Dm644 contrib/vim/HGAnnotate.vim "${vimpath}/syntax/HGAnnotate.vim"
  28. # set some variables
  29. install -m755 -d ${PKG}/etc/profile.d
  30. install -m755 ${SRC}/mercurial.profile "${PKG}/etc/profile.d/mercurial.sh"
  31. # install configuration file
  32. install -m755 -d ${PKG}/etc/mercurial
  33. # install -m644 contrib/sample.hgrc "${PKG}/etc/mercurial/hgrc"
  34. # FS#38825 - Add certs config to package
  35. echo -e "\n[web]\ncacerts = /etc/ssl/certs/ca-certificates.crt\n" >> "${PKG}/etc/mercurial/hgrc"
  36. cd contrib/chg
  37. make DESTDIR="${PKG}" PREFIX=/usr install
  38. }