# Contributor: Bart Ribbers # Maintainer: Bart Ribbers # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-frameworks pkgname=karchive pkgver=9999_git1689645031 pkgrel=1 pkgdesc="Qt5 addon providing access to numerous types of archives" # armhf blocked by extra-cmake-modules arch="all !armhf" url="https://community.kde.org/Frameworks" license="LGPL-2.0-or-later AND LGPL-2.1-or-later" depends_dev=" bzip2-dev qt5-qtbase-dev xz-dev " makedepends="$depends_dev doxygen extra-cmake-modules graphviz qt5-qttools-dev samurai " source="https://download.kde.org/stable/frameworks/${pkgver%.*}/karchive-$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/karchive.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 \ -DBUILD_QCH=ON cmake --build build } check() { ctest --test-dir build --output-on-failure } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" cd63f9b69001114bc5e6809838cba903496cf4ce28222b676255a96dc3d3878b309446cab4dcff12bdf41e7ccd0c4c3629988ba874c60ab85684f6d3f7cb08dc karchive-5.108.0.tar.xz " options="$options !strip"