aboutsummaryrefslogblamecommitdiffstats
path: root/community/akonadi-search/APKBUILD
blob: a1cfc6651821310de12f0f011b3668880a718cf2 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
              
        
                                                                 
                                      
                                       
                                          
                                         

                                                                             















                                 


                           
                       
                                                                                                  


                                        
                        
                                         

                                             
                           


         
                
 















                                                                                 


           
                                               
 
            
                                                                                                                                                               
 
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=akonadi-search
pkgver=21.04.2
pkgrel=0
pkgdesc="Libraries and daemons to implement searching in Akonadi"
# armhf blocked by extra-cmake-modules
# mips64 and riscv64 blocked by akonadi
# s390x blocked by multiple KDE Frameworks
arch="all !armhf !mips64 !s390x !riscv64"
url="https://community.kde.org/KDE_PIM"
license="(GPL-2.0-only OR GPL-3.0-only) AND (LGPL-2.1-only OR LGPL-3.0-only)"
depends_dev="
	akonadi-dev>=$pkgver
	akonadi-mime-dev>=$pkgver
	kcalendarcore-dev
	kcmutils-dev
	kconfig-dev
	kcontacts-dev
	kcrash-dev
	kdbusaddons-dev
	ki18n-dev
	kio-dev
	kmime-dev
	krunner-dev
	qt5-qtbase-dev
	xapian-core-dev
	"
makedepends="$depends_dev
	extra-cmake-modules
	"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/release-service/$pkgver/src/akonadi-search-$pkgver.tar.xz"
subpackages="$pkgname-dev $pkgname-lang"

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

check() {
	cd build

	# akonadi-sqlite-schedulertest, konadi-sqlite-collectionindexingjobtest,
	# akonadi-mysql-schedulertest and akonadi-mysql-collectionindexingjobtest
	# require running dbus server

	# Prevent the lines using more than 80 characters by looping
	local skipped_tests="("
	local tests="
		akonadi-sqlite-scheduler
		akonadi-sqlite-collectionindexingjob
		akonadi-mysql-scheduler
		akonadi-mysql-collectionindexingjob"
	for test in $tests; do
		skipped_tests="$skipped_tests|$test"
	done
	skipped_tests="$skipped_tests)test"
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest -E "$skipped_tests"
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}
sha512sums="
b71964c0fc5e321c5818e25e4e8c0d62006c379b5a07057a01c0a1b1a2e4f73038e8950a0bbab77ceec239dd6aa7d3d9dbb58b0b133dd6d95137a27ccfdfa235  akonadi-search-21.04.2.tar.xz
"