New package: qt6-speech-6.6.0

closes #46866
This commit is contained in:
John 2023-10-24 14:12:03 +02:00 committed by John Zimmermann
parent e7933286e1
commit 7bbc7494a8
5 changed files with 67 additions and 0 deletions

1
srcpkgs/qt6-speech-devel Symbolic link
View File

@ -0,0 +1 @@
qt6-speech

View File

@ -0,0 +1 @@
qt6-speech

View File

@ -0,0 +1 @@
qt6-speech

View File

@ -0,0 +1 @@
qt6-speech

View File

@ -0,0 +1,63 @@
# Template file for 'qt6-speech'
pkgname=qt6-speech
version=6.6.0
revision=1
build_style=cmake
hostmakedepends="perl pkg-config qt6-declarative-host-tools"
makedepends="qt6-base-devel qt6-multimedia-devel qt6-declarative-devel
flite-devel speech-dispatcher-devel alsa-lib-devel"
short_desc="Cross-platform application and UI framework (QT6) - Speech component"
maintainer="John <me@johnnynator.dev>"
license="(LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only) AND GPL-3.0-only with Qt-GPL-exception-1.0"
homepage="https://www.qt.io"
distfiles="https://download.qt.io/official_releases/qt/${version%.*}/${version}/submodules/qtspeech-everywhere-src-${version}.tar.xz"
checksum=969bdbff826808f0cfd80e8f2e357f00174489f30d9f895390cf59814abe9f9c
if [ "$XBPS_CHECK_PKGS" ]; then
configure_args="-DQT_BUILD_TESTS=ON"
fi
pre_check() {
export QML2_IMPORT_PATH="$wrksrc/build/lib${XBPS_TARGET_WORDSIZE}/qt6/qml"
}
post_install() {
rm -rf "${DESTDIR}"/usr/tests
}
qt6-speech-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/qt6/metatypes
vmove usr/lib/pkgconfig
vmove usr/lib/qt6/mkspecs
vmove "usr/lib/*.so"
vmove "usr/lib/*.prl"
vmove usr/lib/qt6/modules
vmove usr/lib/cmake
}
}
qt6-speech-plugin-flite_package() {
short_desc+=" - Flite Plugin"
pkg_install() {
vmove usr/lib/qt6/plugins/texttospeech/libqtexttospeech_flite.so
}
}
qt6-speech-plugin-speechd_package() {
short_desc+=" - Speech dispatcher Plugin"
pkg_install() {
vmove usr/lib/qt6/plugins/texttospeech/libqtexttospeech_speechd.so
}
}
qt6-speech-plugin-mock_package() {
short_desc+=" - Mock Plugin"
pkg_install() {
vmove usr/lib/qt6/plugins/texttospeech/libqtexttospeech_mock.so
}
}