# Maintainer: l-koehler # Contributor: Rihards Skuja # Contributor: Vojtech Kral # Contributor: Antonio Rojas # Contributor: Kuba Serafinowski _remotename=kdeconnect-kde _pkgname=kdeconnect pkgname=$_pkgname-git pkgver=24.01.90.r76.g7f9a984 pkgrel=1 pkgdesc='Adds communication between KDE and your smartphone' arch=('x86_64') url='https://community.kde.org/KDEConnect' license=('GPL2') depends=( kcmutils kconfigwidgets kdbusaddons kdoctools kiconthemes kio kirigami-addons knotifications kpackage kpeople kservice kstatusnotifieritem libfakekey modemmanager-qt pulseaudio-qt qqc2-desktop-style qt6-declarative solid ) makedepends=(git extra-cmake-modules wayland-protocols) optdepends=('sshfs: remote filesystem browser' 'python-nautilus: Nautilus integration' 'qt6-tools: for some runcommand plugin actions') conflicts=($_pkgname) provides=($_pkgname) source=("git+https://invent.kde.org/network/$_remotename.git") sha256sums=('SKIP') pkgver() { cd $_remotename git describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { cmake -B build -S $_remotename \ -DCMAKE_INSTALL_LIBEXECDIR=lib \ -DBUILD_TESTING=OFF \ -Wno-dev cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build }