/
PKGBUILD
36 lines (30 loc) · 1.01 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=qt6-speech
pkgver=${qtver}
subver=${subver}
_pkgver=${_qtver}
pkgrel=1
pkgdesc="Qt Speech support"
arch=('x86_64')
url='https://github.com/qt/qtspeech'
license=('GPL3' 'LGPL')
depends=('qt6-declarative' 'qt6-multimedia' 'speech-dispatcher')
makedepends=('cmake' 'ninja')
groups=('qt6')
options=('!libtool')
_pkgfqn="qtspeech-everywhere-src-${subver}"
source=("${_qtmirror}/${_pkgver}/${subver}/submodules/$_pkgfqn.tar.xz")
#source=("https://download.qt-project.org/development_releases/qt/${_pkgver}/${subver}/submodules/$_pkgfqn.tar.xz")
md5sums=(`grep ${_pkgfqn}.tar.xz ../qt.md5 | cut -d" " -f1`)
build() {
cmake -B build -S ${_pkgfqn} -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_MESSAGE_LOG_LEVEL=STATUS
cmake --build build
}
package() {
DESTDIR=${pkgdir} cmake --install build
install -D -m644 ${_pkgfqn}/LICENSES/* -t ${pkgdir}/usr/share/licenses/${pkgname}
}