summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Heinrich2019-02-08 13:06:25 +0100
committerJonas Heinrich2019-02-08 13:06:25 +0100
commitb38150983b660df82d2503af0668e920f920f520 (patch)
tree6db54b17032b1545b009469e41964fd875894bb1
parentefbfeda66beb2b4bc467dd149274b658fde44d12 (diff)
downloadaur-b38150983b660df82d2503af0668e920f920f520.tar.gz
add kittai keyword detection via snowboy package
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD18
2 files changed, 18 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index b326356b43f..490fe4cae8b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,19 @@
# Generated by mksrcinfo v8
-# Tue Feb 5 16:02:57 UTC 2019
+# Fri Feb 8 12:06:07 UTC 2019
pkgbase = avs-device-sdk
pkgdesc = SDK for commercial device makers to integrate Alexa directly into connected products
pkgver = 1.11
- pkgrel = 3
+ pkgrel = 4
url = https://github.com/alexa/avs-device-sdk
arch = any
license = Apache
makedepends = cmake
+ makedepends = gcc49
depends = portaudio
depends = gstreamer
depends = gst-plugins-base-libs
+ depends = snowboy
+ depends = cblas
source = avs-device-sdk-1.11.tar.gz::https://github.com/alexa/avs-device-sdk/archive/v1.11.tar.gz
sha512sums = 8ddac6a258c8bc054e4eac3a65da1626294112c88da18e50d7359d980c380b392d0c81f5ac1f5faaceca7d19a72b408708a7f4d247246d5f6f24390b5236b1aa
diff --git a/PKGBUILD b/PKGBUILD
index a6456e32073..a170883f335 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,28 +3,36 @@
pkgname=avs-device-sdk
pkgver=1.11
-pkgrel=3
+pkgrel=4
pkgdesc="SDK for commercial device makers to integrate Alexa directly into connected products"
arch=('any')
url="https://github.com/alexa/avs-device-sdk"
license=('Apache')
-makedepends=('cmake')
-depends=('portaudio' 'gstreamer' 'gst-plugins-base-libs')
+makedepends=('cmake' 'gcc49')
+depends=('portaudio' 'gstreamer' 'gst-plugins-base-libs' 'snowboy' 'cblas')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/alexa/avs-device-sdk/archive/v${pkgver}.tar.gz")
sha512sums=('8ddac6a258c8bc054e4eac3a65da1626294112c88da18e50d7359d980c380b392d0c81f5ac1f5faaceca7d19a72b408708a7f4d247246d5f6f24390b5236b1aa')
+prepare() {
+ sed -i 's/blas/cblas/' "${srcdir}/avs-device-sdk-${pkgver}/KWD/KittAi/src/CMakeLists.txt"
+}
+
build() {
cd "${srcdir}"
mkdir -p build
cd build
+ export CC=/usr/bin/gcc-4.9
+ export CXX=/usr/bin/g++-4.9
cmake "../avs-device-sdk-${pkgver}" \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
- -DSENSORY_KEY_WORD_DETECTOR=OFF \
+ -DKITTAI_KEY_WORD_DETECTOR=ON \
+ -DKITTAI_KEY_WORD_DETECTOR_LIB_PATH="/usr/lib/libsnowboy-detect.a" \
+ -DKITTAI_KEY_WORD_DETECTOR_INCLUDE_DIR="/usr/include/libsnowboy-detect.h" \
-DGSTREAMER_MEDIA_PLAYER=ON \
-DPORTAUDIO=ON \
-DPORTAUDIO_LIB_PATH="/usr/lib/libportaudio.so" \
-DPORTAUDIO_INCLUDE_DIR="/usr/include"
- make
+ make -j4
}
package() {