File PKGBUILD of Package crow-translate

# shellcheck disable=2034,2154

pkgname=crow-translate
pkgver=4.0.2
pkgrel=1
pkgdesc='Application that allows you to translate and speak text'
arch=(x86_64 aarch64)
url=https://apps.kde.org/crowtranslate
license=(GPL-3.0-or-later)

depends=(
    qt6-svg
    qt6-multimedia
    qt6-speech
    qt6-scxml
    kwayland
    gst-plugins-good
    openssl
    tesseract
    onnxruntime
    protobuf
)


makedepends=(
    qt6-tools
    extra-cmake-modules
)

source=("https://download.kde.org/stable/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=(SKIP)

build() {
    # cd "${srcdir}"

    cmake \
        -S "$pkgname" \
        -B "$pkgname/build" \
        -DCMAKE_INSTALL_PREFIX=/usr \
        -DBUILD_TESTING=OFF \
        -DCMAKE_BUILD_TYPE=Release \

    make -j2 -C "$pkgname/build"
}

package() {
    # cd "${srcdir}"

    DESTDIR="${pkgdir}" make -C "$pkgname/build" install
    rm -f "${pkgdir}/usr/share/icons/hicolor/icon-theme.cache"
} 
openSUSE Build Service is sponsored by