aboutsummaryrefslogblamecommitdiffstats
path: root/community/kmediaplayer/APKBUILD
blob: 0f3bb4ea91e62a2cfa95417b3aad57f25542c624 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                  
             
        
                                          
                                                        



                                                   
                       
                                                                                                        


                          
                        
                                         

                                             
                           


         
                
                                             
                                                   


           
                                                              
 
                                                                                                                                                                         
# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=kmediaplayer
pkgver=5.70.0
pkgrel=0
pkgdesc="Media player framework for KDE 5"
arch="all !armhf" # armhf blocked by extra-cmake-modules
url="https://community.kde.org/Frameworks"
license="X11 AND LGPL-2.1-or-later"
depends_dev="qt5-qtbase-dev kparts-dev kxmlgui-dev"
makedepends="$depends_dev extra-cmake-modules"
checkdepends="xvfb-run"
source="https://download.kde.org/stable/frameworks/${pkgver%.*}/portingAids/kmediaplayer-$pkgver.tar.xz"
subpackages="$pkgname-dev"

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

check() {
	cd build
	# viewtest requires X11 to be running
	CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install
}
sha512sums="dc359e80735094a41f4dfe5d29f815a6b901b03141bb08a00f3d33379671e1e6e89d9ecf92f678252a236363280a452d6f91fcb111d2bb996fb66afdb32726dc  kmediaplayer-5.70.0.tar.xz"