mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-12 21:56:40 +02:00
69 lines
2 KiB
Text
69 lines
2 KiB
Text
maintainer="Bart Ribbers <bribbers@disroot.org>"
|
|
pkgname=ovos-core
|
|
pkgver=1.2.3
|
|
pkgrel=0
|
|
pkgdesc="OVOS Core, the OVOS Artificial Intelligence platform"
|
|
url="https://github.com/OpenVoiceOS/ovos-core/"
|
|
# loongarch64: blocked by py3-ovos-plugin-manager
|
|
arch="noarch !loongarch64"
|
|
license="Apache-2.0"
|
|
depends="
|
|
py3-adapt-parser
|
|
py3-combo-lock
|
|
py3-dateutil
|
|
py3-ovos-backend-client
|
|
py3-ovos-bus-client
|
|
py3-ovos-classifiers
|
|
py3-ovos-config
|
|
py3-ovos-lingua-franca
|
|
py3-ovos-plugin-manager
|
|
py3-ovos-translate-server-plugin
|
|
py3-ovos-utils
|
|
py3-ovos-workshop
|
|
py3-padatious
|
|
py3-requests
|
|
py3-watchdog
|
|
"
|
|
makedepends="
|
|
py3-gpep517
|
|
py3-setuptools
|
|
py3-wheel
|
|
"
|
|
checkdepends="py3-pytest"
|
|
subpackages="$pkgname-pyc"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/OpenVoiceOS/ovos-core/archive/refs/tags/${pkgver//_alpha/a}.tar.gz
|
|
profile.sh
|
|
ovos.conf
|
|
"
|
|
builddir=$srcdir/ovos-core-${pkgver//_alpha/a}
|
|
# Net is required for tests
|
|
# Some tests are broken still, will be enabled later
|
|
options="!check"
|
|
|
|
build() {
|
|
gpep517 build-wheel \
|
|
--wheel-dir .dist \
|
|
--output-fd 3 3>&1 >&2
|
|
}
|
|
|
|
check() {
|
|
# test_hotword_factory and test_local_recognizer fail
|
|
# https://github.com/MycroftAI/mycroft-core/issues/2574
|
|
python3 -m venv --clear --without-pip --system-site-packages .testenv
|
|
.testenv/bin/python3 -m installer .dist/*.whl
|
|
.testenv/bin/python3 -m pytest
|
|
}
|
|
|
|
package() {
|
|
python3 -m installer -d "$pkgdir" \
|
|
.dist/*.whl
|
|
|
|
install -Dm644 -t "$pkgdir"/etc/OpenVoiceOS "$srcdir"/ovos.conf
|
|
|
|
install -Dm644 "$srcdir"/profile.sh "$pkgdir"/etc/profile.d/ovos.sh
|
|
}
|
|
sha512sums="
|
|
60289d61504dd624f616eb657004afbe0abc0dbc4fcb33a6e79837c17ab353683d3ae78071f2f22671e1afc09b9586b5a19db741f5f3b7d7d6b06e416217705f ovos-core-1.2.3.tar.gz
|
|
c3d1a605a0b574c8e2c4031f592bdbf023f5ed9b2e1ba0cea38cf79278331f245dbe4e220e7f81de73fe612ffd722253805058dae04ba89c3d01c361b329e4ef profile.sh
|
|
889b668be450db9c27d7d9f3b00bbcd9a2882f8a4c129cdc5c94ab21490e85acddfd914496447f5f011713c2ecd5b1cafbf13a5948677d9ff82eb5e478faf47a ovos.conf
|
|
"
|