# Contributor: Bart Ribbers # Maintainer: team/kde # The group tag is just to easily find this APKBUILD by some scripts for automation # group=kde-applications pkgname=ark pkgver=23.04.3 pkgrel=1 pkgdesc="Graphical file compression/decompression utility with support for multiple formats" # armhf blocked by extra-cmake-modules arch="all !armhf" url="https://kde.org/applications/utilities/org.kde.ark" license="GPL-2.0-only" depends=" 7zip-virtual lrzip unzip zip zstd " makedepends=" extra-cmake-modules karchive-dev kconfig-dev kcrash-dev kdbusaddons-dev kdoctools-dev ki18n-dev kiconthemes-dev kio-dev kitemmodels-dev kparts-dev kpty-dev kservice-dev kwidgetsaddons-dev libarchive-dev libzip-dev qt5-qtbase-dev samurai shared-mime-info xz-dev " checkdepends="xvfb-run" _repo_url="https://invent.kde.org/utilities/ark.git" source="https://download.kde.org/stable/release-service/$pkgver/src/ark-$pkgver.tar.xz" subpackages="$pkgname-doc $pkgname-lang" # secfixes: # 20.08.0-r1: # - CVE-2020-24654 # 20.04.3-r1: # - CVE-2020-16116 case "$CARCH" in # FIXME: tests fail, see alpine/aports#14266 x86_64) options="!check";; esac build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run -a ctest } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 6ca740fef459232cf7ff19d76b2ddcb080b8c9b34a0c718dae0875253417a6f3f8f9c4a7bd2bc5002ae06bb41eef7f958a40f0d54896680e82879ef0f1cbed10 ark-23.04.3.tar.xz "