Skip to content
Snippets Groups Projects
Commit 16d0b0c7 authored by Bart Ribbers's avatar Bart Ribbers
Browse files

Re-add KDE Connect, it seems to have been lost in the aports split

parent bf532bda
No related branches found
No related tags found
No related merge requests found
Pipeline #191754 failed
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kdeconnect
pkgver=1.3.1_git20180822
pkgrel=0
_commit="14994132f83d33edd2ef2bad29c8873d17610d24"
pkgdesc="Adds communication between KDE and your smartphone"
url="https://community.kde.org/KDEConnect"
arch="all"
license="GPL-2.0"
depends=""
makedepends="extra-cmake-modules kdoctools-dev kconfigwidgets-dev kdbusaddons-dev kiconthemes-dev
knotifications-dev kio-dev kcmutils-dev qca-qt5-dev plasma-framework-dev libexecinfo-dev
qt5-qtdeclarative-dev"
subpackages="$pkgname-doc $pkgname-mobile" #$pkgname-lang is only available in the release package
#source="https://download.kde.org/stable/$pkgname/$pkgver/src/$pkgname-kde-$pkgver.tar.xz
source="$pkgname-$_commit.tar.gz::https://github.com/KDE/$pkgname-kde/archive/$_commit.tar.gz"
options="!check" # Requires running X11 server
builddir="$srcdir/$pkgname-kde-$_commit"
build() {
cd "$builddir"
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTING=ON \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DEXPERIMENTALAPP_ENABLED=true \
-DBUILD_TYPE=Release
make
}
check() {
cd "$builddir"
CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
}
mobile() {
depends="kirigami2"
install -d "$subpkgdir"/usr/share/applications
install -d "$subpkgdir"/usr/bin
install -d "$subpkgdir"/usr/lib/qt5/plugins/kdeconnect
mv "$pkgdir"/usr/bin/kcapp "$subpkgdir"/usr/bin/
mv "$pkgdir"/usr/share/applications/org.kde.kdeconnect.app.desktop "$subpkgdir"/usr/share/applications/
mv "$pkgdir"/usr/lib/qt5/plugins/kdeconnect/kdeconnect_remotecommands.so "$subpkgdir"/usr/lib/qt5/plugins/kdeconnect/
mv "$pkgdir"/usr/lib/qt5/plugins/kdeconnect/kdeconnect_remotecontrol.so "$subpkgdir"/usr/lib/qt5/plugins/kdeconnect/
mv "$pkgdir"/usr/lib/qt5/plugins/kdeconnect/kdeconnect_lockdevice.so "$subpkgdir"/usr/lib/qt5/plugins/kdeconnect/
mv "$pkgdir"/usr/lib/qt5/plugins/kdeconnect/kdeconnect_mprisremote.so "$subpkgdir"/usr/lib/qt5/plugins/kdeconnect/
}
sha512sums="a7c2381e1bbcca1e2ca0d1f3a0ff6d9d5759ea21a11fb5dc0de0992dca3c2ddbe4afc3adfa5685bb1b624bb3bcec4f58d43f1ea61324c23aaabc9835b1494373 kdeconnect-14994132f83d33edd2ef2bad29c8873d17610d24.tar.gz"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment