Date: Saturday, April 22, 2023 @ 07:47:07 Author: alerque Revision: 1448236
upgpkg: ranger 1.9.3-8; Use PEP517 build, add missing optdepend FS#61583 Modified: ranger/trunk/PKGBUILD ----------+ PKGBUILD | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-04-22 07:45:10 UTC (rev 1448235) +++ PKGBUILD 2023-04-22 07:47:07 UTC (rev 1448236) @@ -1,10 +1,11 @@ -# Maintainer: schuay <[email protected]> # Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> -# Previous maintainer: Roman Zimbelmann <[email protected]> +# Maintainer: Caleb Maclennan <[email protected]> +# Contributor: schuay <[email protected]> +# Contributor: Roman Zimbelmann <[email protected]> pkgname=ranger pkgver=1.9.3 -pkgrel=7 +pkgrel=8 pkgdesc='Simple, vim-like file manager' arch=('any') url='https://ranger.github.io' @@ -23,11 +24,14 @@ 'perl-image-exiftool: for viewing information about media files' 'poppler: for pdf previews' 'python-chardet: in case of encoding detection problems' + 'python-pillow: for in-terminal preview of images in Kitty' 'sudo: to use the "run as root"-feature' 'transmission-cli: for viewing bittorrent information' 'ueberzug: for previews of images' 'w3m: for previews of images and html pages') checkdepends=('python-pytest') +makedepends=(python-{build,installer,wheel} + python-setuptools) source=(https://ranger.github.io/${pkgname}-${pkgver}.tar.gz{,.sig}) sha512sums=('5cd7bea714a6542d0a5445f5f0cf929b2df4377df3ef710f3786c6c46dd58b017a8060cde3969076637bfaac03c13297d3020fd82f4574dc49546ca223c0e8d3' 'SKIP') @@ -34,14 +38,22 @@ validpgpkeys=('1E9B36EC051FF6F7FFC969A7F08CE1E200FB5CDF' '66FA95C0F1619BDA520A41F60D63346A5D15D055') # huterich +build() { + cd ${pkgname}-${pkgver} + python -m build -wn +} + check() { cd ${pkgname}-${pkgver} - make test_pytest + local _pyver=$(python -c 'import sys; print("".join(map(str, sys.version_info[:2])))') + export PYTHONPATH="$PWD/lib.linux-$CARCH-cpython-$_pyver" + export TERM=linux + python -m unittest discover } package() { cd ${pkgname}-${pkgver} - python setup.py install --root="${pkgdir}" --optimize=1 + python -m installer -d "$pkgdir" dist/*.whl } # vim: ts=2 sw=2 et:
