projects/aports·blob master · refs

30 lines · 1006 B

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