aboutsummaryrefslogblamecommitdiffstats
path: root/community/kdeconnect/APKBUILD
blob: 93881baef35f88329c7c59322f72de9bfa82f32e (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
          
        

                                                            
          
                                      
                         
                                                                                                                                                                                                                                                                      

                                        







                                                                                                                  

         

                            
                                                   


                                                




                                              
                            
                                           
                                                                                                           


           
                            


                                      
                                                                                                                                                                    
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kdeconnect
pkgver=1.4
pkgrel=1
pkgdesc="Adds communication between KDE and your smartphone"
url="https://community.kde.org/KDEConnect"
arch="all"
license="GPL-2.0-only OR GPL-3.0-only"
depends="kirigami2 sshfs"
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"
checkdepends="xvfb-run"
subpackages="$pkgname-doc $pkgname-lang"
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
}

build() {
	cd "$builddir"/build
	cmake "$builddir" \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_INSTALL_LIBEXECDIR=lib \
		-DEXPERIMENTALAPP_ENABLED=TRUE
	make
}

check() {
	cd "$builddir"/build
	# testsslsocketlinereader is broken
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "(testsslsocketlinereader|testnotificationlistener)"
}

package() {
	cd "$builddir"/build
	DESTDIR="$pkgdir" make install
}

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