# Contributor: Gennady Feldman <gena01@gmail.com>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=s3cmd
pkgver=2.4.0
pkgrel=1
pkgdesc="Command-line tool for managing Amazon S3 and CloudFront services"
url="https://github.com/s3tools/s3cmd"
license="GPL-2.0-or-later"
arch="noarch"
depends="python3 py3-dateutil py3-magic"
makedepends="py3-gpep517 py3-installer py3-setuptools py3-wheel"
subpackages="$pkgname-doc $pkgname-pyc"
source="https://github.com/s3tools/s3cmd/archive/v$pkgver/s3cmd-$pkgver.tar.gz"
options="!check" # tests need a running s3 server

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

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/s3cmd-$pkgver-py2.py3-none-any.whl
}

sha512sums="
8b65d0a0b4f2f61297d0d93d1cae3ff0b48f02004ee15ae1a42d14068994ceae0ae0f4fb77fbb25b99ea1fc4c33522efe14f657ecb35c673b476ecd9056e20c0  s3cmd-2.4.0.tar.gz
"
