2022-03-20 13:34:07 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
|
|
# Website : https://pozol.eu
|
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=mercurial
|
2022-07-30 21:38:32 +02:00
|
|
|
pkgver=6.2.1
|
|
|
|
pkgrel=01
|
2022-03-20 13:34:07 +01:00
|
|
|
pkgdesc='A scalable distributed SCM tool'
|
|
|
|
arch=(x86_64)
|
|
|
|
url="https://www.mercurial-scm.org/"
|
|
|
|
depends=(python)
|
|
|
|
makedepends=(python-docutils)
|
2022-07-16 19:13:08 +02:00
|
|
|
#makedepends=(python-build python-installer python-setuptools python-wheel python-docutils)
|
2022-03-20 13:34:07 +01:00
|
|
|
optdepends=('tk: for the hgk GUI')
|
|
|
|
#checkdepends=('breezy' 'cvs' 'git' 'git-lfs' 'python-docutils' 'subversion' 'unzip')
|
|
|
|
|
|
|
|
# ToDo:
|
|
|
|
# check included contrib/packaging/mercurial.spec and how BLFS/Gentoo/Debian/Fedora do it
|
|
|
|
# the following should be either makedepends or checkdepends when running tests
|
|
|
|
# 'python-gnupg' 'python-pygments' 'python-pyflakes' 'python-pyopenssl'
|
|
|
|
# 'openssh' 'rust' 'subversion' 'breezy' 'cvs' 'git')
|
|
|
|
|
|
|
|
backup=(etc/mercurial/hgrc)
|
|
|
|
source=(https://www.mercurial-scm.org/release/${pkgname}-${pkgver}.tar.gz{,.asc}
|
|
|
|
mercurial.profile)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
2022-05-09 21:47:52 +02:00
|
|
|
# python -m build --wheel --no-isolation
|
2022-07-16 19:13:08 +02:00
|
|
|
# from an older build - kept for reference
|
2022-03-20 13:34:07 +01:00
|
|
|
python setup.py build
|
|
|
|
make -C contrib/chg
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd $pkgname-$pkgver/tests
|
2022-07-16 19:13:08 +02:00
|
|
|
# # TODO - disabled for now - too many tests fail
|
|
|
|
# python run-tests.py # -j48 || :
|
2022-03-20 13:34:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
# python -m installer --destdir="$pkgdir" dist/*.whl
|
2022-07-16 19:13:08 +02:00
|
|
|
## also from the older build
|
2022-03-20 13:34:07 +01:00
|
|
|
python setup.py install --root="$pkgdir" --skip-build --optimize=1
|
|
|
|
make DESTDIR="${pkgdir}" PREFIX=/usr install
|
|
|
|
|
|
|
|
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 -m644 "$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
|
|
|
|
}
|
|
|
|
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
|
|
|
|
license=(GPL)
|
|
|
|
|
|
|
|
validpgpkeys=(2BCCE14F5C6725AA2EA8AEB7B9C9DC824AA5BDD5
|
|
|
|
EB851395B4223EE2F7BA0B28DA54740BF08732BA
|
|
|
|
818D87CD1AC180C394C86E633A33DE460D9EC39F # Pulkit Goyal <7895pulkit@gmail.com>
|
|
|
|
1F66F8CDF654E905C11DA061A11E01CD0E05D956) # Raphaël Gomès <alphare@raphaelgomes.dev>
|
|
|
|
|
2022-07-30 21:38:32 +02:00
|
|
|
sha256sums=(8ac5d7a20d1c2ad54d4c263d134164646dc34a8e3a6bed69cfbeabaf8d3882da # mercurial-6.2.1.tar.gz
|
|
|
|
f858a766dedc0d6562836e4cefc7f677c2787c28e1d85454966d3e61a3be2463 # mercurial-6.2.1.tar.gz.asc
|
2022-03-20 13:34:07 +01:00
|
|
|
87427151713e689cd87dc50d50c048e0e58285815e4eb61962b50583532cbde5) # mercurial.profile
|
2022-07-16 19:13:08 +02:00
|
|
|
|
2022-07-30 21:38:32 +02:00
|
|
|
|