diff --git a/repo/python-pfzy/PKGBUILD b/repo/python-pfzy/PKGBUILD new file mode 100644 index 0000000..0d17e3e --- /dev/null +++ b/repo/python-pfzy/PKGBUILD @@ -0,0 +1,23 @@ +pkgbase='python-pfzy' +pkgname=('python-pfzy') +_module='pfzy' +pkgver='0.3.4' +pkgrel=3 +pkgdesc="Python port of the fzy fuzzy string matching algorithm" +url="https://github.com/kazhala/pfzy" +depends=('python') +makedepends=('python-build' 'python-installer' 'python-poetry-core' 'python-wheel') +license=('MIT') +arch=('any') +source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz") +sha256sums=('717ea765dd10b63618e7298b2d98efd819e0b30cd5905c9707223dceeb94b3f1') + +build() { + cd "${srcdir}/${_module}-${pkgver}" + python -m build --wheel --no-isolation +} + +package() { + cd "${srcdir}/${_module}-${pkgver}" + python -m installer --destdir="$pkgdir" dist/*.whl +}