43 lines
1.2 KiB
Bash
43 lines
1.2 KiB
Bash
# Maintainer: Rihards Skuja <rhssk at posteo dot eu>
|
|
# Contributor: Vojtech Kral <vojtech_kral^hk>
|
|
# Contributor: Antonio Rojas <arojas@archlinux.org>
|
|
# Contributor: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
|
|
|
|
_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
|
|
}
|