summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bc845a04e3aed754520a63039eda50871f5dee37 (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
# Maintainer: Josh Chernoff <joshchernoff@fullstack.ing>
pkgname=spellr
pkgver=0.1.0
pkgrel=1
pkgdesc="KDE spell checker with ranked suggestions, text-to-speech, and session history"
arch=('x86_64')
url="https://codeberg.org/FullStacking/spellr"
license=('MIT')
depends=(
    'qt6-base'
    'qt6-speech'
    'sonnet'
    'kxmlgui'
    'ki18n'
    'kwidgetsaddons'
    'kcoreaddons'
    'hunspell'
    'flite'
    'wl-clipboard'
)
makedepends=('cmake' 'extra-cmake-modules' 'ninja' 'git')
install=spellr.install
source=("spell-$pkgver::git+https://codeberg.org/FullStacking/spellr.git#tag=v$pkgver")
sha256sums=('SKIP')

build() {
    cmake -B build -S "spell-$pkgver" \
        -G Ninja \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr
    cmake --build build
}

package() {
    DESTDIR="$pkgdir" cmake --install build
    install -Dm644 "spell-$pkgver/LICENSE" \
        "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}