summaryrefslogblamecommitdiff
path: root/user/extra-cmake-modules/APKBUILD
blob: b8236536da2e983b0f0974c0ddb318fa0f6d6bd7 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                  
             


                                                  
             
              
                      
          
                                                                       

                                       
                                                                                                  

                   

         





                                                                                          
                                           
                                    



            
                                      
                                                                       


           


                                      
                                                                                                                                                                               
                                                                                                                                              
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=extra-cmake-modules
pkgver=5.67.0
pkgrel=0
pkgdesc="CMake modules needed for KDE development"
url="https://www.kde.org/"
arch="noarch"
options="!dbg"
license="BSD-3-Clause"
depends=""
makedepends="cmake qt5-qtbase-dev qt5-qttools-dev qt5-qtdeclarative-dev
	qt5-qtquickcontrols py3-sphinx"
subpackages="$pkgname-doc"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/extra-cmake-modules-$pkgver.tar.xz
	posix.patch
	"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		${CMAKE_CROSSOPTS} .
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE \
		ctest -E '(relative_or_absolute_|KDEFetchTranslations)'
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="1a0e185ea4eac16d57c34f140a4709c0bcd9baaa7e0727ab5c1bfee88fe08efe23dc3634d8f73abade98ad6f2dbf529563e0778f0fbeddaa50b435e12b674229  extra-cmake-modules-5.67.0.tar.xz
a9e5d5e7ac8372099458ed18d2a6023fa0acf46955f51509880e7a467b4bd9e5df67c44c9ad032b1d70139efb73206390eaf7cd2baf63a82131e6e2b4acdbd71  posix.patch"