# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kjs pkgver=5.59.0 pkgrel=0 pkgdesc="Support for JS scripting in applications" arch="all" 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/$pkgname-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc" build() { cmake \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" make install } sha512sums="3552269d3e4299bb92d68ee961275712a629ebece0abd847f8d69afc18559bf167b882534c0c40ca6b2a42d964af11dff991fa7c636045c99790c0bab5398072 kjs-5.59.0.tar.xz"