File PKGBUILD of Package goldendict-ng
# Maintainer: Oleksandr Natalenko <oleksandr@natalenko.name>
pkgname=goldendict-ng
pkgver=26.1.1
_pkgext=Release.5491ffca
pkgrel=1
pkgdesc="The next generation GoldenDict"
arch=(x86_64)
url=https://xiaoyifang.github.io/goldendict-ng
license=(GPL-3.0-or-later)
depends=(hunspell libfmt.so liblzma.so liblzo2.so libtomlplusplus.so libvorbis.so libxapian.so libxtst libz.so libzim opencc qt6-5compat qt6-base qt6-multimedia qt6-svg qt6-webengine)
makedepends=(cmake git ninja qt6-tools)
source=(https://github.com/xiaoyifang/goldendict-ng/archive/refs/tags/v${pkgver}-${_pkgext}.tar.gz)
sha256sums=('e59b343b4ecd2b34c110797119e700a25628d0ef6c7f589511e411bcf85adf7d')
build() {
# The flag reportedly led to crashes around Oct 2022, consider removing this in future
export CXXFLAGS+=" -Wp,-U_GLIBCXX_ASSERTIONS"
cmake -B build -S goldendict-ng-${pkgver}-${_pkgext} -G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DWITH_EPWING_SUPPORT=OFF \
-DUSE_SYSTEM_FMT=ON \
-DUSE_SYSTEM_TOML=ON \
-DWITH_FFMPEG_PLAYER=OFF \
-Wno-dev
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}