# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kjsembed pkgver=5.66.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 qt5-qttools-static kdoctools-dev" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/portingAids/kjsembed-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" prepare() { default_prepare mkdir "$builddir"/build } build() { cd "$builddir"/build cmake "$builddir" \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib make } check() { cd "$builddir"/build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { cd "$builddir"/build DESTDIR="$pkgdir" make install } sha512sums="eba7badb454370ba2671703c01760f97bfa637aa949b297268780afdca91cd4232abb87f4a52fe8cc7cee86377d6853e278408eece034ed54447c26864c7b69f kjsembed-5.66.0.tar.xz"