summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Heinrich2019-02-10 11:11:27 +0100
committerJonas Heinrich2019-02-10 11:11:27 +0100
commit07349aa8168380cedc30f94fac02df41d85f1993 (patch)
tree0f62a6a322dfe09d10de12fbd049b204235954ae
parentb7dcec67d2c0021632ec37633fb40100f8024357 (diff)
downloadaur-07349aa8168380cedc30f94fac02df41d85f1993.tar.gz
fix gcc build
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD14
2 files changed, 12 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 30f8bb621dd..a6e20c03b54 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,14 +1,14 @@
# Generated by mksrcinfo v8
-# Sat Feb 9 22:58:06 UTC 2019
+# Sun Feb 10 10:11:25 UTC 2019
pkgbase = avs-device-sdk
pkgdesc = SDK for commercial device makers to integrate Alexa directly into connected products
pkgver = 1.11
- pkgrel = 5
+ pkgrel = 6
url = https://github.com/alexa/avs-device-sdk
arch = any
license = Apache
makedepends = cmake
- makedepends = gcc6
+ makedepends = gcc49
depends = portaudio
depends = gstreamer
depends = gst-plugins-base-libs
diff --git a/PKGBUILD b/PKGBUILD
index 11f6855aa1e..3fdc1f11a9b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,12 +3,12 @@
pkgname=avs-device-sdk
pkgver=1.11
-pkgrel=5
+pkgrel=6
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' 'gcc6')
+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')
@@ -21,8 +21,12 @@ build() {
cd "${srcdir}"
mkdir -p build
cd build
- export CC="/usr/bin/gcc-6"
- export CXX="/usr/bin/g++-6"
+ # use older gcc version to avoid bugs
+ export CC="/usr/bin/gcc-4.9"
+ export CXX="/usr/bin/g++-4.9"
+ # removing -fno-plt usually defined in /etc/makepkg.conf
+ export CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
+ export CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe"
cmake "../avs-device-sdk-${pkgver}" \
-DCMAKE_INSTALL_PREFIX:PATH=/usr \
-DKITTAI_KEY_WORD_DETECTOR=ON \
@@ -32,7 +36,7 @@ build() {
-DPORTAUDIO=ON \
-DPORTAUDIO_LIB_PATH="/usr/lib/libportaudio.so" \
-DPORTAUDIO_INCLUDE_DIR="/usr/include"
- make -j4
+ make
}
package() {