# Contributor: Thiago Perrotta <tbperrotta@gmail.com>
# Maintainer: Thiago Perrotta <tbperrotta@gmail.com>
pkgname=autotrash
pkgver=0.4.7
pkgrel=0
pkgdesc="Tool to automatically purge old trashed files"
url="https://bneijt.nl/pr/autotrash/"
arch="noarch"
license="GPL-3.0-or-later"
depends="python3 py3-setuptools"
makedepends="py3-gpep517 py3-poetry-core py3-installer"
options="!check"  # no tests
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/a/autotrash/autotrash-$pkgver.tar.gz"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/autotrash*.whl
}

sha512sums="
73aec7c3ade5a6a9df162465224e171dc1ab358485d308c348a01d30557d8ae57affd3ddaf47bb1c9717e9d4ec56496e4aecb50604fafe1f2468abc337e0408a  autotrash-0.4.7.tar.gz
"
