summaryrefslogblamecommitdiff
path: root/user/kwayland/APKBUILD
blob: b736d6d872e24a5296d8e71cf0a1aef4dd51ac37 (plain) (tree)
1
2
3
4
5
6
7
8
9

                                                  
             


                                          
                                                       
                                        

                                                                    
                                                                           
                                       
                                                                                        
         









                                                                                          
                                    


            


                                          

                                      
                                                                                                                                                                     
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kwayland
pkgver=5.71.0
pkgrel=0
pkgdesc="Qt wrapper libraries for Wayland"
url="https://www.kde.org/"
arch="all"
options="!check"  # Requires running Wayland compositor
license="LGPL-2.1-only OR LGPL-3.0-only"
depends=""
depends_dev="qt5-qtbase-dev wayland-dev"
makedepends="$depends_dev cmake extra-cmake-modules doxygen graphviz
	qt5-qttools-dev qt5-qtwayland qt5-qtwayland-dev qt5-qtwayland-tools
	wayland-protocols"
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/kwayland-$pkgver.tar.xz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=RelWithDebugInfo \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		-DBUILD_QCH:BOOL=ON \
		${CMAKE_CROSSOPTS} .
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="89c89a9baa6b57724f663a0e6636154d1009f9d6971d9f22eff6402fc8407ed59b4a103c82a0fc8a643d83184381325c07bd70468b0bfbbc606ebe30abe188b3  kwayland-5.71.0.tar.xz"