APKBUILD 1.52 KB
Newer Older
Bart Ribbers's avatar
Bart Ribbers committed
1 2 3
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kdeconnect
4
pkgver=1.4
5
pkgrel=1
Bart Ribbers's avatar
Bart Ribbers committed
6 7
pkgdesc="Adds communication between KDE and your smartphone"
url="https://community.kde.org/KDEConnect"
8
arch="all !armhf" # armhf blocked by kirigami2 -> qt5-qtdeclarative
Bart Ribbers's avatar
Bart Ribbers committed
9
license="GPL-2.0-only OR GPL-3.0-only"
10
depends="kirigami2 sshfs"
11
makedepends="extra-cmake-modules qt5-qtbase-dev qt5-qtmultimedia-dev ki18n-dev kconfigwidgets-dev kdbusaddons-dev kiconthemes-dev knotifications-dev kio-dev kcmutils-dev kservice-dev kirigami2-dev kpeople-dev kdoctools-dev qca-dev pulseaudio-qt kpeoplevcard-dev"
Bart Ribbers's avatar
Bart Ribbers committed
12 13
checkdepends="xvfb-run"
subpackages="$pkgname-doc $pkgname-lang"
14 15 16 17 18 19 20 21
source="$pkgname-$pkgver.tar.xz::https://download.kde.org/stable/kdeconnect/$pkgver/kdeconnect-kde-$pkgver.tar.xz"
builddir="$srcdir/$pkgname-kde-$pkgver"

prepare() {
	default_prepare

	mkdir "$builddir"/build
}
Bart Ribbers's avatar
Bart Ribbers committed
22 23

build() {
24 25
	cd "$builddir"/build
	cmake "$builddir" \
26
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
Bart Ribbers's avatar
Bart Ribbers committed
27 28 29 30 31 32 33 34
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_INSTALL_LIBEXECDIR=lib \
		-DEXPERIMENTALAPP_ENABLED=TRUE
	make
}

check() {
35
	cd "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
36
	# testsslsocketlinereader is broken
37
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(testsslsocketlinereader|testnotificationlistener)"
Bart Ribbers's avatar
Bart Ribbers committed
38 39 40
}

package() {
41
	cd "$builddir"/build
Bart Ribbers's avatar
Bart Ribbers committed
42 43 44
	DESTDIR="$pkgdir" make install
}

45
sha512sums="a8a43327b4185579d626978afc11bb0f334f73f7d68fc72090aab3fd14fb1af381061dd5278fb73e63ff2cb5a688f8ec969c097503d751aff48159237aa56cbf  kdeconnect-1.4.tar.xz"