| 1 | # Contributor: Fabian Affolter <[email protected]> |
| 2 | # Maintainer: Fabian Affolter <[email protected]> |
| 3 | pkgname=py3-allfiles |
| 4 | _pkgname=allfiles |
| 5 | pkgver=1.0 |
| 6 | pkgrel=9 |
| 7 | pkgdesc="Iterator for matching files in directory trees" |
| 8 | url="https://pypi.org/project/allfiles" |
| 9 | arch="noarch" |
| 10 | license="MIT" |
| 11 | replaces="py-allfiles" # for backwards compatibility |
| 12 | provides="py-allfiles=$pkgver-r$pkgrel" # for backwards compatibility |
| 13 | depends="python3" |
| 14 | makedepends="py3-setuptools py3-gpep517 py3-wheel" |
| 15 | subpackages="$pkgname-pyc" |
| 16 | source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.zip" |
| 17 | builddir="$srcdir"/$_pkgname-$pkgver |
| 18 | |
| 19 | build() { |
| 20 | gpep517 build-wheel \ |
| 21 | --wheel-dir .dist \ |
| 22 | --output-fd 3 3>&1 >&2 |
| 23 | } |
| 24 | |
| 25 | package() { |
| 26 | gpep517 install-wheel --destdir "$pkgdir" \ |
| 27 | .dist/*.whl |
| 28 | } |
| 29 | |
| 30 | sha512sums="698f1131950eba7cc12af727e2c27c5018c1d81ab1cca7f94f308061220003b5b412ef4720ba1bbebc50e7fee4f5549c43868d2cfe81e99df1f78e6bf7c38d0f allfiles-1.0.zip" |