86 lines
3.4 KiB
Bash
86 lines
3.4 KiB
Bash
#!/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
|
|
pkgver=6.6.2
|
|
pkgrel=01
|
|
pkgdesc='A scalable distributed SCM tool'
|
|
url="https://www.mercurial-scm.org/"
|
|
depends=(python)
|
|
makedepends=(python-build python-installer python-setuptools python-wheel python-docutils)
|
|
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
|
|
python -m build -wn
|
|
make -C contrib/chg
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver/tests
|
|
# # TODO - disabled for now - too many tests fail
|
|
# python run-tests.py # -j48 || :
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
python -m installer -d "$pkgdir" dist/*.whl
|
|
|
|
# Do not invoke install target because it invokes a soon to be deprecated
|
|
# `setup.py install` and screws with shebang handling in PEP517 install above
|
|
make DESTDIR="$pkgdir" PREFIX=/usr install-doc
|
|
|
|
install -Dm644 contrib/zsh_completion "$pkgdir/usr/share/zsh/site-functions/_hg"
|
|
install -Dm644 contrib/bash_completion "$pkgdir/usr/share/bash-completion/completions/hg"
|
|
|
|
make -C contrib/chg DESTDIR="$pkgdir" PREFIX=/usr install
|
|
install -Dm755 contrib/hg-ssh "$pkgdir/usr/bin"
|
|
install -Dm755 contrib/hgk "$pkgdir/usr/bin"
|
|
|
|
install -Dm644 -t "$pkgdir/usr/share/emacs/site-lisp/" contrib/{mq.el,mercurial.el}
|
|
|
|
install -Dm644 -t "$pkgdir/usr/share/vim/vimfiles/syntax/" contrib/vim/HGAnnotate.vim
|
|
|
|
# set some variables
|
|
install -Dm644 "$srcdir/mercurial.profile" "$pkgdir/etc/profile.d/mercurial.sh"
|
|
# FS#38825 - Add certs config to package
|
|
cat <<-EOF | install -Dm755 /dev/stdin "$pkgdir/etc/mercurial/hgrc"
|
|
[web]
|
|
cacerts = /etc/ssl/certs/ca-certificates.crt
|
|
EOF
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(GPL)
|
|
|
|
validpgpkeys=(2BCCE14F5C6725AA2EA8AEB7B9C9DC824AA5BDD5 #
|
|
EB851395B4223EE2F7BA0B28DA54740BF08732BA #
|
|
818D87CD1AC180C394C86E633A33DE460D9EC39F # Pulkit Goyal <7895pulkit@gmail.com>
|
|
1F66F8CDF654E905C11DA061A11E01CD0E05D956) # Raphaël Gomès <alphare@raphaelgomes.dev>
|
|
|
|
sha512sums=('cf45c7c43555bd64d95ec6de2af7952bb50c2fba9ec59ce1afd9437b1fb53e399bd1e6f1b6e17cc5699f598cca4e087f82b3097d2d772219dd0337bbbde2d16b'
|
|
'SKIP'
|
|
'710dcddb24d928efc97370e869d9caa083107929ed9a1086dd2a3ae0caaf2c71e2f29060597e29315b6b15b1616251c42412e268ce737109c48ae4d7aa1b9555')
|
|
|
|
sha256sums=(cb494d7be7ddc2fc9d3171c88830af9c02b21c753e3e5113defac9c0373b4b60 # mercurial-6.6.2.tar.gz
|
|
98034fa60f273fe2f37805b120a4a415b0c0ccc72eda86f2bee5c2afca98a05c # mercurial-6.6.2.tar.gz.asc
|
|
87427151713e689cd87dc50d50c048e0e58285815e4eb61962b50583532cbde5) # mercurial.profile
|
|
|
|
## 25ed58bdb33b7d9f7e68d56d32d772fe0122936dac93da4b10945dce0a7b80a5 mercurial-6.6.2-01-x86_64.pkg.tar.lz
|
|
|