# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kjsembed pkgver=5.97.0 pkgrel=0 pkgdesc="JavaScript bindings for QObject" arch="all !armhf" # armhf blocked by extra-cmake-modules url="https://community.kde.org/Frameworks" license="LGPL-2.1-or-later" depends_dev="qt5-qtsvg-dev kjs-dev ki18n-dev" makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev kdoctools-dev samurai" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/portingAids/kjsembed-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" 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=" 5eb2efc77fa41c7496b122f0c663053974dac2e722672c7885119019aaf29c18bbab5f616e607c2eaae4175aaa6b48af1324f514981cac22b06456891eddebcd kjsembed-5.97.0.tar.xz "