# 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=kdeconnect pkgver=23.04.3 pkgrel=2 pkgdesc="Adds communication between KDE and your smartphone" url="https://community.kde.org/KDEConnect" # armhf blocked by extra-cmake-modules arch="all !armhf" license="GPL-2.0-only OR GPL-3.0-only" depends=" kirigami2 qt5-qtquickcontrols sshfs " makedepends=" extra-cmake-modules kcmutils-dev kconfigwidgets-dev kdbusaddons-dev kdoctools-dev ki18n-dev kiconthemes-dev kio-dev kirigami2-dev knotifications-dev kpeople-dev kpeoplevcard-dev kservice-dev kwayland-dev libfakekey-dev modemmanager-qt-dev pulseaudio-qt-dev qca-dev qqc2-desktop-style-dev qt5-qtbase-dev qt5-qtmultimedia-dev samurai " checkdepends="xvfb-run" subpackages="$pkgname-doc $pkgname-lang $pkgname-nftables" _repo_url="https://invent.kde.org/network/kdeconnect-kde.git" source="https://download.kde.org/stable/release-service/$pkgver/src/kdeconnect-kde-$pkgver.tar.xz 60_kdeconnect.nft " builddir="$srcdir/$pkgname-kde-$pkgver" # secfixes: # 20.08.2-r0: # - CVE-2020-26164 build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DCMAKE_INSTALL_LIBEXECDIR=lib cmake --build build } check() { cd build # testsslsocketlinereader, testnotificationlistener and sendfiletest are broken CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "testsslsocketlinereader|testnotificationlistener|sendfiletest" } package() { DESTDIR="$pkgdir" cmake --install build } nftables() { pkgdesc="$pkgdesc (nftables rules)" install_if="$pkgname=$pkgver-r$pkgrel nftables" install -Dm644 -t "$subpkgdir"/etc/nftables.d "$srcdir"/60_kdeconnect.nft } sha512sums=" 2121a4b7a94994dc8ccb2dae1224d854aea814b2c5328c719899a69c59ec1b74296a570fc3e58f76836beb4d4dc3eaca5e7e1e2bef7633c1d59f35a9986c76af kdeconnect-kde-23.04.3.tar.xz 0ccc2cb0ffd3892698b45bcf723cfdd23ad98f0e2b0436cd0a91d9ed13c6992853e2c4092ee8a0edc6216f1f262151e99e344b8f16c52237e9ff8de62fd37cae 60_kdeconnect.nft "