# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=py3-ovos-microphone-plugin-alsa
pkgver=0.1.0
pkgrel=0
pkgdesc="OpenVoiceOS Microphone plugin"
url="https://github.com/OpenVoiceOS/ovos-microphone-plugin-alsa"
arch="noarch"
license="Apache-2.0"
depends="
	py3-ovos-plugin-manager
	py3-pyalsaaudio
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-microphone-plugin-alsa/archive/refs/tags/V$pkgver.tar.gz"
options="!check" # No tests
builddir="$srcdir/ovos-microphone-plugin-alsa-$pkgver"

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

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

sha512sums="
5033ae40d44479fa2f58801f6664a8d3b0873af9a3dfd48fec1d6531e54d97c1bb0d31110093ad568ca13089d82c175b18019fe204a45aa4d24087f85b0dad2b  py3-ovos-microphone-plugin-alsa-0.1.0.tar.gz
"
