blob: 44daa4ec76fe7cf0816c7159f538ab7742c09d43 (
plain)
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
36
37
38
39
|
# Maintainer: TheBill2001 <tuantran1632001 at gmail dot com>
pkgname=qtcreator-spellchecker-plugin
pkgver=3.6.0
pkgrel=2
pkgdesc="Spell Checker plugin for the Qt Creator IDE"
groups=('qt')
arch=('x86_64')
url="https://github.com/CJCombrink/SpellChecker-Plugin"
license=('LGPL-3.0-only' 'GPL-3.0-only')
depends=(
'qtcreator>=13.0.0' 'qtcreator<14.0.0'
'hunspell' # Don't know why upstream binary does not link to hunspell but this does.
)
makedepends=(
'cmake'
'qtcreator-devel>=13.0.0' 'qtcreator-devel<14.0.0'
'syntax-highlighting' # This might not be needed in the future version of qtcreator-devel
)
source=("$pkgname-$pkgver.tar.gzr::${url}/archive/v$pkgver.tar.gz")
sha256sums=('3887679e5cade0eea876ca413472284cad882e09ec2680fb44d761b92e45df94')
build() {
# This might not be needed in the future version of qtcreator-devel
export CXXFLAGS="$CXXFLAGS -isystem /usr/include/KF6/KSyntaxHighlighting/"
cmake \
-S SpellChecker-Plugin-$pkgver\
-B build \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DCMAKE_PREFIX_PATH="/usr/lib/cmake/Qt6" \
-Wno-dev
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|