# Maintainer: Rihards Skuja # Contributor: Vojtech Kral # Contributor: Antonio Rojas # Contributor: Kuba Serafinowski _remotename=kdeconnect-kde _pkgname=kdeconnect pkgname=$_pkgname-git pkgver=21.07.80.r160.77047268 pkgrel=1 pkgdesc='Adds communication between KDE and your smartphone' arch=(x86_64) url='https://community.kde.org/KDEConnect' license=(GPL2) depends=(hicolor-icon-theme kcmutils kwayland libfakekey qca kpeople kpeoplevcard kirigami2 pulseaudio-qt) makedepends=(git extra-cmake-modules kdoctools qt5-declarative qqc2-desktop-style plasma-wayland-protocols) optdepends=('sshfs: remote filesystem browser' 'kde-cli-tools: configuration UI' 'python-nautilus: Nautilus integration') conflicts=($_pkgname) provides=($_pkgname) source=("git+https://invent.kde.org/network/$_remotename.git") sha256sums=('SKIP') pkgver() { cd $_remotename printf "%s" "$(git describe --long | 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 }