aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mycroft-core/APKBUILD
blob: fc16b4bc4d6b42d76afa4196239015f3949b7f90 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=mycroft-core
pkgver=20.2.3
pkgrel=0
pkgdesc="Mycroft Core, the Mycroft Artificial Intelligence platform"
url="https://mycroft.ai/"
# mips, mips64 and s390x blocked by py3-precise-runner
# s390x blocked by mimic1
arch="noarch !mips !mips64 !s390x"
license="Apache-2.0"
depends="python3 py3-six py3-requests py3-gtts py3-pyaudio py3-pyee py3-speechrecognition py3-tornado py3-websocket-client py3-requests-futures py3-serial py3-psutil py3-pocketsphinx py3-inflection py3-pillow py3-dateutil py3-fasteners py3-yaml py3-lingua-franca mycroft-skills-manager mycroft-skills-kit py3-adapt-parser py3-padatious py3-fann2 py3-padaos py3-precise-runner py3-petact py3-xdg mimic1"
# These dependencies are required for their executables
depends="$depends pulseaudio-utils mpg123 vorbis-tools"
# Minimum skills required for functionality
depends="$depends mycroft-skill-fallback-unknown mycroft-skill-pairing mycroft-skill-configuration"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-wheel py3-vlc"
install="$pkgname.post-install"
source="$pkgname-$pkgver.tar.gz::https://github.com/MycroftAI/mycroft-core/archive/release/v$pkgver.tar.gz
	mycroft.conf
	0001-remove-xmlrunner-dep.patch
	0002-follow-xdg-for-skill-settings.patch
	0003-xdg.patch
	0004-relax-dep-requirements.patch
	0005-make-some-deps-optional.patch
	"
# Net is required for tests
# Two tests are broken still
# https://github.com/MycroftAI/mycroft-core/issues/2574
options="!check"
builddir="$srcdir/mycroft-core-release-v$pkgver"

build() {
	MYCROFT_LOOSE_REQUIREMENTS=1 python3 setup.py build
}

check() {
	PYTHONPATH="$PWD/build/lib" pytest
}

package() {
	MYCROFT_LOOSE_REQUIREMENTS=1 python3 setup.py install --prefix=/usr --root="$pkgdir"

	install -Dm644 "$srcdir"/mycroft.conf "$pkgdir"/etc/mycroft/mycroft.conf
}

sha512sums="8c9464f32dea1c5b843725c4494be17a4ccd5c46af363d3fc695813a79c1100b033f3bbac5d5e490c6afb9d018de5418cd1e467766d2d190c74ba2902399eec9  mycroft-core-20.2.3.tar.gz
c852bf37c3588a3f65f55b65af0e55440e13aeeaca522e7029a7326ec58c9cf053d14c7c3376a952b65512cabe3437ba6701f1e0e0e4971d6b5ada159bacd57a  mycroft.conf
d9b8fd8dc9e42937f2ec095c1ddee738073a9f9c64917a9793cadaad23504a7ae22e2e1420a2822ed915b4aae6fa5e5717ead97dc88f3045dd1bbb73b92eed4d  0001-remove-xmlrunner-dep.patch
27148a19c2d5a4fd61c25850659e4edc95844c30eb1339243e939cf22aa9093d9d4e805d80a79174e257be1614ebd7be284163e3688b083c0704a1e4c9328f58  0002-follow-xdg-for-skill-settings.patch
f1760d828a37d3abd50e9f26c983dc68277e12b181ff598e4d7d1447b3a965644039c4d5035b1adaf593cf6a4afd44bc85cd16929c2a553eca1125c21d3e2619  0003-xdg.patch
fa0667bd4a9f8f9c17c353f1bf1899bf699d77968caca81b54d7aa89219b65b4f2630e07dd092a427221fc98c2f9e2890811f3f50c44fe783bbadb3725554898  0004-relax-dep-requirements.patch
4d6fdc303e0f6ce73fc91cc680f7942c2a902540f090a3c27a2d9f51eecc704093fbba5fb11f25273c688317138959bf5cfb15bac6d5a20ce2be551a4f6c6ab5  0005-make-some-deps-optional.patch"