# Depends on: qtbase speech-dispatcher 

description="A cross-platform application and UI framework, QtSpeech files"
url="http://qt-project.org/"
contributors="Pierre B"
packager="tnut <tnut@nutyx.org>"

name=qtspeech
version=5.11.3
release=2

_name="${name}-everywhere-src"

source=(https://download.qt.io/official_releases/qt/5.11/$version/submodules/${_name}-${version}.tar.xz)

build() {
cd ${_name}-${version}
qmake
make
make INSTALL_ROOT=$PKG install

# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
  find "$PKG/usr/lib" -type f -name '*.prl' \
       -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
# Obsolet lib
rm $PKG/usr/lib/libQt5TextToSpeech.la
}
