diff options
author | Michael Hanson <hansonorders@verizon.net> | 2010-11-05 02:55:04 (GMT) |
---|---|---|
committer | Michael Hanson <hansonorders@verizon.net> | 2010-11-05 02:55:04 (GMT) |
commit | 2e9de8e980bd65c44629c8e1cb84105d530ce560 (patch) | |
tree | e709292dbb76fc64b0f4aebf70dc3c9b4acc12b5 /abs/extra/mercurial/PKGBUILD | |
parent | 1bc83bd99f473ad5cb9ba36795ccfc8c7e3bf63b (diff) | |
parent | a79540b84f7f74607fc0a742518f8d88d88b84ad (diff) | |
download | linhes_pkgbuild-2e9de8e980bd65c44629c8e1cb84105d530ce560.zip linhes_pkgbuild-2e9de8e980bd65c44629c8e1cb84105d530ce560.tar.gz linhes_pkgbuild-2e9de8e980bd65c44629c8e1cb84105d530ce560.tar.bz2 |
Merge branch 'testing' of knoppmyth.net:linhes_pkgbuild into testing
Diffstat (limited to 'abs/extra/mercurial/PKGBUILD')
-rw-r--r-- | abs/extra/mercurial/PKGBUILD | 58 |
1 files changed, 32 insertions, 26 deletions
diff --git a/abs/extra/mercurial/PKGBUILD b/abs/extra/mercurial/PKGBUILD index 08d38e3..0ce6012 100644 --- a/abs/extra/mercurial/PKGBUILD +++ b/abs/extra/mercurial/PKGBUILD @@ -1,35 +1,41 @@ -# $Id: PKGBUILD 29080 2009-03-05 10:10:06Z douglas $ -# Contributor: Jeff Mickey <jeff@archlinux.org> -# Contributor: Giovanni Scafora <linuxmania@gmail.com> -# Contributor: David 'SleepyDog' <goodluv@gmail.com> -# Maintainer: Douglas Soares de Andrade <douglas@archlinux.org> +# $Id: PKGBUILD 97863 2010-11-02 05:48:54Z giovanni $ +# Maintainer: Giovanni Scafora <giovanni@archlinux.org> +# Contributor: Douglas Soares de Andrade <douglas@archlinux.org> pkgname=mercurial -pkgver=1.2 +pkgver=1.7 pkgrel=1 pkgdesc="A scalable distributed SCM tool" -url="http://www.selenic.com/mercurial" -license=("GPL") -depends=('python>=2.6') -source=(http://www.selenic.com/mercurial/release/$pkgname-$pkgver.tar.gz) arch=('i686' 'x86_64') +url="http://www.selenic.com/mercurial" +license=('GPL') +depends=('python2') +optdepends=('tk: for the hgk GUI') +source=(http://www.selenic.com/mercurial/release/${pkgname}-${pkgver}.tar.gz + mercurial.profile) +md5sums=('698948ff128d265db55bee8149445556' + '43e1d36564d4c7fbe9a091d3ea370a44') build() { - cd $startdir/src/$pkgname-$pkgver - python setup.py install --root $startdir/pkg - - install -d $startdir/pkg/usr/share/man/{man1,man5} - install -m644 doc/hg.1 $startdir/pkg/usr/share/man/man1 - install -m644 doc/{hgrc.5,hgignore.5} $startdir/pkg/usr/share/man/man5 - install -m755 contrib/hgk $startdir/pkg/usr/bin - install -m644 -D contrib/zsh_completion $startdir/pkg/usr/share/zsh/site-functions/_hg - install -m644 -D contrib/bash_completion $startdir/pkg/etc/bash_completion.d/hg - install -d $startdir/pkg/usr/share/emacs/site-lisp - install -m644 contrib/{mq.el,mercurial.el} $startdir/pkg/usr/share/emacs/site-lisp - install -m644 -D contrib/vim/HGAnnotate.vim $startdir/pkg/usr/share/vim/syntax/HGAnnotate.vim + cd "${srcdir}/${pkgname}-${pkgver}" + python2 setup.py install --root="${pkgdir}/" --optimize=1 || return 1 + + #sed -i -e 's#env python#env python2#' \ + # "${pkgdir}"/usr/lib/python2.7/site-packages/mercurial/lsprof.py + + install -d ${pkgdir}/usr/share/man/{man1,man5} + install -m644 doc/hg.1 "${pkgdir}/usr/share/man/man1" || return 1 + install -m644 doc/{hgrc.5,hgignore.5} "${pkgdir}/usr/share/man/man5" || return 1 + install -m755 contrib/hgk "${pkgdir}/usr/bin" || return 1 + install -m644 -D contrib/zsh_completion "${pkgdir}/usr/share/zsh/site-functions/_hg" || return 1 + install -m644 -D contrib/bash_completion "${pkgdir}/etc/bash_completion.d/hg" || return 1 + install -d "${pkgdir}/usr/share/emacs/site-lisp" + install -m644 contrib/{mq.el,mercurial.el} "${pkgdir}/usr/share/emacs/site-lisp" || return 1 + + vimpath="${pkgdir}/usr/share/vim/vimfiles" + install -Dm644 contrib/vim/HGAnnotate.vim "${vimpath}/syntax/HGAnnotate.vim" || return 1 - # Autoloading plugins to vim = no good. - # install -d $startdir/pkg/usr/share/vim/plugin - # install -m644 contrib/vim/{hg-menu.vim,hgcommand.vim,patchreview.vim} $startdir/pkg/usr/share/vim/plugin + # set some variables + install -m755 -d ${pkgdir}/etc/profile.d + install -m755 ${srcdir}/mercurial.profile "${pkgdir}/etc/profile.d/mercurial.sh" || return 1 } -md5sums=('ac9d16b078f99f7a89d6865421570f05') |