diff options
author | chrisjbillington | 2019-11-28 09:47:53 -0500 |
---|---|---|
committer | chrisjbillington | 2019-11-28 09:48:15 -0500 |
commit | 5e8c6c64a601e99babd4e248a955f170225b1774 (patch) | |
tree | 8c5eb24615254150cee574f0891a30b34a468f3f | |
download | aur-5e8c6c64a601e99babd4e248a955f170225b1774.tar.gz |
initial commit
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 59 | ||||
-rw-r--r-- | mercurial.profile | 1 |
3 files changed, 79 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..0e376133ba23 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = mercurial-python3 + pkgdesc = A scalable distributed SCM tool - built with Python 3 + pkgver = 5.2 + pkgrel = 0 + url = https://www.mercurial-scm.org/ + arch = x86_64 + license = GPL + depends = python + optdepends = tk: for the hgk GUI + provides = mercurial + conflicts = mercurial + backup = etc/mercurial/hgrc + source = https://www.mercurial-scm.org/release/mercurial-5.2.tar.gz + source = mercurial.profile + sha256sums = ff030e923f03ee15c91191996fcb099bfcfa60c7df263be227f67b6a65d36194 + sha256sums = 87427151713e689cd87dc50d50c048e0e58285815e4eb61962b50583532cbde5 + +pkgname = mercurial-python3 + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9c4ebaef4a29 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,59 @@ +# Maintainer: Chris Billington <chrisjbillington@gmail.com> +# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org> +# Contributor: Giovanni Scafora <giovanni@archlinux.org> +# Contributor: Douglas Soares de Andrade <douglas@archlinux.org> + +pkgname=mercurial-python3 +_pkgname=mercurial +pkgver=5.2 +pkgrel=0 +pkgdesc='A scalable distributed SCM tool - built with Python 3' +arch=(x86_64) +url="https://www.mercurial-scm.org/" +license=(GPL) +provides=(mercurial) +conflicts=(mercurial) +depends=(python) +optdepends=('tk: for the hgk GUI') +backup=(etc/mercurial/hgrc) +source=(https://www.mercurial-scm.org/release/${_pkgname}-${pkgver}.tar.gz + mercurial.profile) +sha256sums=('ff030e923f03ee15c91191996fcb099bfcfa60c7df263be227f67b6a65d36194' + '87427151713e689cd87dc50d50c048e0e58285815e4eb61962b50583532cbde5') + +build() { + cd $_pkgname-$pkgver/contrib/chg + make +} + +package() { + cd $_pkgname-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + 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 -m644 -D contrib/zsh_completion "$pkgdir/usr/share/zsh/site-functions/_hg" + install -m644 -D contrib/bash_completion "$pkgdir/usr/share/bash-completion/completions/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" + + install -Dm644 contrib/vim/HGAnnotate.vim \ + "$pkgdir/usr/share/vim/vimfiles/syntax/HGAnnotate.vim" + + # set some variables + install -m755 -d "$pkgdir/etc/profile.d" + install -m755 "$srcdir/mercurial.profile" "$pkgdir/etc/profile.d/mercurial.sh" + + # FS#38825 - Add certs config to package + install -m755 -d "$pkgdir/etc/mercurial" + cat <<-EOF > "$pkgdir/etc/mercurial/hgrc" + [web] + cacerts = /etc/ssl/certs/ca-certificates.crt + EOF +} diff --git a/mercurial.profile b/mercurial.profile new file mode 100644 index 000000000000..fc961828c01b --- /dev/null +++ b/mercurial.profile @@ -0,0 +1 @@ +export HG=/usr/bin/hg |