# include global config source ../_buildscripts/${current_repo}-${_arch}-cfg.conf pkgname=ark arch=('x86_64') pkgver=${_kdever} pkgrel=1 pkgdesc="Graphical file compression/decompression utility with support for multiple formats, including tar, gzip, bzip2, rar and zip, as well as CD-ROM images" url="https://apps.kde.org/ark/" license=('GPL' 'LGPL' 'FDL') depends=('karchive6' 'kconfig6' 'kcrash6' 'kdbusaddons6' 'kfilemetadata6' 'ki18n6' 'kitemmodels6' 'kio6' 'kservice6' 'kparts6' 'kpty6' 'kwidgetsaddons6' 'kiconthemes6' 'libarchive' 'p7zip' 'zip' 'unzip' 'unrar' 'libzip' 'lzop') makedepends=('extra-cmake-modules' 'kdoctools6') conflicts=('ark6') replaces=('ark6') groups=('kde' 'kde-utils' 'kde-uninstall' 'utils') source=($_mirror/${pkgname}-${_kdever}.tar.xz "https://invent.kde.org/utilities/ark/-/commit/85c5e26f581cf011638a53e62b92e1da8fd55fcd.diff") md5sums=(`grep ${pkgname}-${_kdever}.tar.xz ../kde-sc.md5 | cut -d" " -f1` '4f730f82e8f6bd0cc8a40ce5e6d3e4d6') prepare() { cd ${pkgname}-${pkgver} #patch -p1 -i ${srcdir}/85c5e26f581cf011638a53e62b92e1da8fd55fcd.diff #sed -i 's|application/x-rar|application/vnd.rar|' plugins/clirarplugin/CMakeLists.txt } build() { cmake -B build -S ${pkgname}-${pkgver} \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DKDE_INSTALL_LIBDIR=lib \ -DKDE_INSTALL_SYSCONFDIR=/etc \ -DBUILD_TESTING=OFF \ -DQT_MAJOR_VERSION=6 cmake --build build } package() { DESTDIR=${pkgdir} cmake --install build }