aboutsummaryrefslogblamecommitdiffstats
path: root/community/kmime/APKBUILD
blob: d3f755c7bedaecf72795df3cafdd07f560173b3e (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                  
              
        
                                                                   
                                      
                 

                                       







                           
                                                                                         


                                        
                        
                                         

                                             
                           


         
                
 




                                                                          
                                                              
 
                                                                                                                                                                   
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kmime
pkgver=20.08.3
pkgrel=0
pkgdesc="Library for handling mail messages and newsgroup articles"
# armhf blocked by extra-cmake-modules
arch="all !armhf"
url="https://community.kde.org/KDE_PIM"
license="LGPL-2.0-or-later"
depends_dev="
	kcodecs-dev
	ki18n-dev
	qt5-qtbase-dev
	"
makedepends="$depends_dev
	extra-cmake-modules
	"
source="https://download.kde.org/stable/release-service/$pkgver/src/kmime-$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

	# kmime-headertest and kmime-messagetest are broken
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E "kmime-(header|message)test"
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="3dd4314960d5dceed08206a8d997f38b294de0244fcf3a7f4859f913401ae86f5bc8cc598d9b7cf132373704e499c1eccc13e9dd11bfda0b8a5b04a66421b65e  kmime-20.08.3.tar.xz"