# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=ovos-skill-hello-world
pkgver=0.0.4_alpha3
pkgrel=1
pkgdesc="Introductory Skill so that Skill Authors can see how an OVOS Skill is put together"
url="https://github.com/OpenVoiceOS/skill-ovos-hello-world"
# loongarch64: blocked by py3-ovos-workshop
arch="noarch !loongarch64"
license="Apache-2.0"
depends="
	py3-ovos-utils
	py3-ovos-workshop
	"
makedepends="
	py3-gpep517
	py3-setuptools
	py3-wheel
	"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/skill-ovos-hello-world/archive/refs/tags/V${pkgver//_alpha/a}.tar.gz"
options="!check" # No tests
builddir="$srcdir/skill-ovos-hello-world-${pkgver//_alpha/a}"

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

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

sha512sums="
af103a0c9d09f8e178d4da234eca133023b4ff813e4f8203c9eac9dce974684bf9c42c25d640027b8d01f6adf23a1921c9a1ba8233b1c3e8e2d887235fd3f85b  ovos-skill-hello-world-0.0.4_alpha3.tar.gz
"
