# Contributor: Bart Ribbers # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-frameworks pkgname=kjs pkgver=5.108.0 pkgrel=2 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=" pcre-dev perl-dev qt5-qtbase-dev " makedepends="$depends_dev extra-cmake-modules kdoctools-dev samurai " _repo_url="https://invent.kde.org/frameworks/kjs.git" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/portingAids/kjs-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc" _commit="" snapshot() { clean makedepends="git xz rsync tar" deps mkdir -p "$srcdir" && cd "$srcdir" git clone --filter=tree:0 https://invent.kde.org/frameworks/kjs.git . git archive --format tar --prefix=$pkgname/ $_commit > ../$pkgname-$_commit.tar xz -vv -T0 -9 -e ../$pkgname-$_commit.tar } 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 --install build } sha512sums=" 4df0a7cf1e28e662b97ac1fd115734c2ae1392651048d7c15225ff3cefa6e7e97f8c275629e7f8f537ee6490e935158f8d492304e2fae248cc8deae29cfb69ec kjs-5.108.0.tar.xz "