# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kjsembed pkgver=5.64.0 pkgrel=0 pkgdesc="JavaScript bindings for QObject" arch="all" 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="7d921872fad980d90f21056f0a50e402ed3f02abcbeda53642a319a8571bd984ace3d0f9333281ebad64add3095ee2e6329f687e3a1a8ac81c9af8e44cd2fe61 kjsembed-5.64.0.tar.xz"