# Contributor: Sodface # Maintainer: Sodface pkgname=sdcv pkgver=0.5.5 pkgrel=0 pkgdesc="Console version of StarDict" url="https://dushistov.github.io/sdcv/" license="GPL-2.0-or-later" arch="all" makedepends="cmake glib-dev readline-dev samurai zlib-dev" checkdepends="jq" subpackages="$pkgname-doc $pkgname-lang" source="$pkgname-$pkgver.tar.gz::https://github.com/Dushistov/sdcv/archive/v$pkgver.tar.gz" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake -B build -G Ninja \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=None \ -DBUILD_TESTS=True \ $CMAKE_CROSSOPTS cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest -j1 } package() { mkdir build/locale DESTDIR="$pkgdir" cmake --install build } sha512sums=" 6059e1ddc43a023f7cb0e2a8d99929bcb204c211863fce4dece2dc30b92e7d1ce91bc25d2ed4bc54b713f61671264ac7e906d2b9ce078fa943cc5d81cd5d37dd sdcv-0.5.5.tar.gz "