# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kjs pkgver=5.76.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" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/portingAids/kjs-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc" build() { cmake -B build \ -DCMAKE_BUILD_TYPE=None \ -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="5b9d1538e390647f21da6af9d1d7647769011523362c2cb23f651e75cbbc9e2e221fab57a75759c24cda08818876688f851fbd6f6da63d505589c308aed45a9e kjs-5.76.0.tar.xz"