[arch-commits] Commit in afew/trunk (PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Sat Sep 3 08:40:16 UTC 2022
Date: Saturday, September 3, 2022 @ 08:40:16
Author: polyzen
Revision: 1291128
upgpkg: afew 3.0.1-5: nitypkg
Modified:
afew/trunk/PKGBUILD
----------+
PKGBUILD | 25 +++++++++++++++----------
1 file changed, 15 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-03 08:17:31 UTC (rev 1291127)
+++ PKGBUILD 2022-09-03 08:40:16 UTC (rev 1291128)
@@ -5,21 +5,23 @@
pkgname=afew
pkgver=3.0.1
-pkgrel=4
+pkgrel=5
pkgdesc='Initial tagging script for notmuch mail'
-arch=(any)
+arch=('any')
url=https://github.com/afewmail/afew
license=('custom:BSD')
depends=('notmuch' 'python-chardet' 'python-dkim' 'python-setuptools')
-makedepends=('python-setuptools-scm' 'python-sphinx')
+makedepends=('python-build' 'python-installer' 'python-setuptools-scm'
+ 'python-sphinx' 'python-wheel')
checkdepends=('python-freezegun')
source=("https://files.pythonhosted.org/packages/source/a/afew/afew-$pkgver.tar.gz")
sha256sums=('ce857fe1a3bc0982c1dac81aef66cacc148e4f9db06da720f869392af1c2ee72')
+b2sums=('9ce125ec2359f7cf4630b9602b3068327adc06a699d325c90bc9b545df9ce7f3a62623cc733dfec55ee3e51523e4512ebec04e7186470fc56bb1589a7141cbc9')
build() {
cd afew-$pkgver
- python setup.py build
- python setup.py build_sphinx -b man
+ python -m build --wheel --skip-dependency-check --no-isolation
+ PYTHONPATH="build:${PYTHONPATH}" sphinx-build -b man docs build
}
check() {
@@ -29,9 +31,12 @@
package() {
cd afew-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 -t "$pkgdir"/usr/share/man/man1 build/sphinx/man/afew.1
- install -Dm644 -t "$pkgdir"/usr/share/licenses/afew LICENSE
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm644 -t "$pkgdir"/usr/share/man/man1 build/afew.1
+
+ # Symlink license file
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s "$site_packages"/$pkgname-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
-
-# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list