aboutsummaryrefslogtreecommitdiffstats
path: root/community/kdeconnect/APKBUILD
blob: 4a6899c7f62e95cd5dd2c51a51f02251e68e3a4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kdeconnect
pkgver=20.12.1
pkgrel=0
pkgdesc="Adds communication between KDE and your smartphone"
url="https://community.kde.org/KDEConnect"
# armhf blocked by kirigami2 -> qt5-qtdeclarative
# s390x blocked by kcmutils, kconfigwdigets, kiconthemes, kio
# mips, mips64, s390x blocked by polkit
arch="all !armhf !s390x !mips !mips64"
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
	pulseaudio-qt-dev
	qca-dev
	qt5-qtbase-dev
	qt5-qtmultimedia-dev
	"
checkdepends="xvfb-run"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.kde.org/stable/release-service/$pkgver/src/kdeconnect-kde-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-kde-$pkgver"

# secfixes:
#   20.08.2-r0:
#     - CVE-2020-26164

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_INSTALL_LIBEXECDIR=lib \
		-DEXPERIMENTALAPP_ENABLED=TRUE
	cmake --build build
}

check() {
	cd build
	# testsslsocketlinereader and testnotificationlistener are broken
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(testsslsocketlinereader|testnotificationlistener)"
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}

sha512sums="21ace7529087ae3e08a3490894aac84c39156c680e37c97c28c94c5402143288dd6d245171d830cb3f46676101e4c1e7ccc35509751a51caf82ba7e7953b9b76  kdeconnect-kde-20.12.1.tar.xz"