# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kjs pkgver=5.108.0 pkgrel=0 pkgdesc="Support for JS scripting in applications" arch="all !armhf" # armhf blocked by extra-cmake-modules url="https://community.kde.org/Frameworks" license="LGPL-2.1-or-later AND BSD-3-Clause AND MIT" depends_dev="qt5-qtbase-dev perl-dev pcre-dev" makedepends="$depends_dev extra-cmake-modules kdoctools-dev samurai" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/portingAids/kjs-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums=" 4df0a7cf1e28e662b97ac1fd115734c2ae1392651048d7c15225ff3cefa6e7e97f8c275629e7f8f537ee6490e935158f8d492304e2fae248cc8deae29cfb69ec kjs-5.108.0.tar.xz "