# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=kpackage pkgver=9999_git1688868295 pkgrel=0 pkgdesc="Framework that lets applications manage user installable packages of non-binary assets" arch="all !armhf" # armhf blocked by extra-cmake-modules url="https://community.kde.org/Frameworks" license="LGPL-2.1-or-later" depends_dev="qt5-qtbase-dev karchive-dev ki18n-dev kcoreaddons-dev" makedepends="$depends_dev extra-cmake-modules qt5-qttools-dev kdoctools-dev doxygen samurai" source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kpackage-$pkgver.tar.xz" subpackages="$pkgname-dev $pkgname-doc " options="!check" # Fails due to requiring installed Plasma, which causes a circular dependency build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_QCH=ON cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE ctest } package() { DESTDIR="$pkgdir" cmake --build build --target install } sha512sums=" 9e58acd078489745f4c416ca35c29735fe21171b4737e4c0e6d276e0b5ea379a60bc629f040e203159cb00fd4cca9708f04b55bbce36de8deb6a1d8394800fea kpackage-5.108.0.tar.xz " options="$options !strip"