summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4ffc722f01584e693d0c38c7fbbd5e8fa1f132b8 (plain)
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
pkgname=kalliope
pkgver=0.5.5
pkgrel=1
arch=('x86_64')
pkgdesc="Modular always-on voice controlled personal assistant designed for home automation"
# makedepends=('swig' 'wget')
depends=(portaudio python-markupsafe python-pyaudio python-pythondialog python-jinja  python-cffi python-flask-restful python-ipaddress python-apscheduler python-flask-testing python-httpretty python-requests svox-pico-bin mplayer python-feedparser python-mock python-transitions python-gitpython python-pyalsaaudio python-soundfile python-sounddevice python-sox python-voicerss-tts python-paho-mqtt python-ansible python-cachingutil python-pip cblas python-gevent python-gtts python-sox python-speechrecognition python-configurationutil python-stateutil python-ruamel-yaml python-logging-tree python-classutils python-uiutil python-tableutil python-conversionutil python-openpyxl)
license=('MIT')
url="https://github.com/kalliope-project/kalliope"
source=("https://github.com/kalliope-project/kalliope/archive/v${pkgver}.tar.gz")
sha256sums=('3b2dbee3e380d3942491684a5c6dd00ab173dda3472faf71f08e138c8946cfbd')

prepare()
{
  cd "$srcdir/kalliope-${pkgver}"
  sed -i "s|ansible>=2.8.1,<2.9|ansible>=2.8|g" setup.py

  # rebuild snowboy
#   SNOWBOY_VERSION=1.2.0
#   wget -c https://github.com/Kitt-AI/snowboy/archive/v${SNOWBOY_VERSION}.tar.gz
#   rm -rf snowboy-${SNOWBOY_VERSION}
#   tar xzf v${SNOWBOY_VERSION}.tar.gz
#   cd snowboy-${SNOWBOY_VERSION}/swig/Python
#   sed -i "s|-lf77blas -lcblas -llapack_atlas -latlas|-lcblas|g" Makefile
#   make
#   python -c "import _snowboydetect; print('OK')"
#   cd ../../..
#   cp ./snowboy-1.2.0/swig/Python/_snowboydetect.so ./kalliope/trigger/snowboy/x86_64/python36/
}


build()
{
  cd "$srcdir/kalliope-${pkgver}"
  python setup.py build
}

package()
{
  cd "$srcdir/kalliope-${pkgver}"
  python setup.py install --root="${pkgdir}" --optimize=1
}