# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=qt5-qtspeech pkgver=5.15.10_git20230612 pkgrel=0 _module="${pkgname#qt5-}" _pkgver=75142c77cda8ef3a5c1cae69863e963797c667b5 _fullname=$_module-$_pkgver pkgdesc="Qt module to make text to speech and speech recognition easy" url="https://qt.io" arch="all !armhf" # armhf blocked by qt5-qtdeclarative license="( LGPL-2.0-or-later OR GPL-3.0-only OR GPL-2.0-or-later ) AND Qt-GPL-exception-1.0" depends="qt5-qtmultimedia" makedepends="qt5-qtbase-dev" subpackages="$pkgname-dev" source="https://dev.alpinelinux.org/archive/qt/$_fullname.tar.xz" builddir="$srcdir/$_fullname" _disturl="dev.alpinelinux.org:/archive/qt/" snapshot() { clean makedepends="git xz rsync tar" deps mkdir -p "$srcdir" && cd "$srcdir" git clone --filter=tree:0 https://invent.kde.org/qt/qt/$_module.git . git archive --format tar --prefix=$_fullname/ $_pkgver > "$SRCDEST"/$_fullname.tar xz -vv -T0 -9 -e "$SRCDEST"/$_fullname.tar rsync --progress -La "$SRCDEST"/$_fullname.tar.xz $_disturl } prepare() { default_prepare # We need to make the build system think we're running in a git repository # so it correctly symlinks during the build mkdir .git } build() { qmake-qt5 make } check() { make check } package() { INSTALL_ROOT="$pkgdir" make install # Drop QMAKE_PRL_BUILD_DIR because reference the build dir find "$pkgdir/usr/lib" -type f -name '*.prl' \ -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \; install -d "$pkgdir"/usr/share/licenses ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/$pkgname } sha512sums=" 51281ed739c26a1928e2e3fdb68d5a458af78e2240ec48f8a216733807613568332bcd8a490c315bd0f803299f790fc478c739d77fe7191c507eab0a94765e87 qtspeech-75142c77cda8ef3a5c1cae69863e963797c667b5.tar.xz "