Caleb Maclennan pushed to branch main at Arch Linux / Packaging / Packages /
mercurial
Commits:
a0b2dbe3 by Caleb Maclennan at 2023-12-23T00:23:06+03:00
upgpkg: 6.6.1-2: Use PEP517 build system
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,10 +1,14 @@
pkgbase = mercurial
pkgdesc = A scalable distributed SCM tool
pkgver = 6.6.1
- pkgrel = 1
+ pkgrel = 2
url = https://www.mercurial-scm.org/
arch = x86_64
license = GPL
+ makedepends = python-build
+ makedepends = python-installer
+ makedepends = python-wheel
+ makedepends = python-setuptools
makedepends = python-docutils
depends = python
optdepends = tk: for the hgk GUI
=====================================
PKGBUILD
=====================================
@@ -4,13 +4,15 @@
pkgname=mercurial
pkgver=6.6.1
-pkgrel=1
+pkgrel=2
pkgdesc='A scalable distributed SCM tool'
arch=(x86_64)
url="https://www.mercurial-scm.org/"
license=(GPL)
depends=(python)
-makedepends=(python-docutils)
+makedepends=(python-{build,installer,wheel}
+ python-setuptools
+ python-docutils)
optdepends=('tk: for the hgk GUI')
#checkdepends=('breezy' 'cvs' 'git' 'git-lfs' 'python-docutils' 'subversion'
'unzip')
@@ -33,7 +35,7 @@
sha512sums=('f16240f06a98a088e0229aa6584daa540eee92476a0a7934617c065c9f1012288cf
build() {
cd $pkgname-$pkgver
- python setup.py build
+ python -m build -wn
make -C contrib/chg
}
@@ -45,7 +47,7 @@ check() {
package() {
cd $pkgname-$pkgver
- python setup.py install --root="$pkgdir" --skip-build --optimize=1
+ python -m installer -d "$pkgdir" dist/*.whl
make DESTDIR="${pkgdir}" PREFIX=/usr install
install -m644 -D contrib/zsh_completion
"$pkgdir/usr/share/zsh/site-functions/_hg"
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/mercurial/-/commit/a0b2dbe3f37265e2cab7ddfd5a8b7c7c9e4017e5
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/mercurial/-/commit/a0b2dbe3f37265e2cab7ddfd5a8b7c7c9e4017e5
You're receiving this email because of your account on gitlab.archlinux.org.