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


                                                  
             



                                          
                           


                                                    
                          
                                                                                                



























                                                                                          
                                                                                                                                                                         
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=kmediaplayer
pkgver=5.48.0
pkgrel=0
pkgdesc="Media player framework for KDE 5"
url="https://www.kde.org/"
arch="all"
license="X11 AND LGPL-2.1+"
depends=""
depends_dev="qt5-qtbase-dev kparts-dev kxmlgui-dev"
makedepends="$depends_dev cmake extra-cmake-modules"
subpackages="$pkgname-dev"
source="https://download.kde.org/stable/frameworks/5.48/portingAids/kmediaplayer-$pkgver.tar.xz"

build() {
	cd "$builddir"
	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" \
		${CMAKE_CROSSOPTS}
	make
}

check() {
	cd "$builddir"
	# viewtest requires X11
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest -E viewtest
}

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

sha512sums="bea8f58843a8164bbecda9da751d5a53e43ea630580590c96f1af30fcced027f18b6bb484b114269feb1f56cefbe66c7df85b5416d382202e47bdf15b49eb728  kmediaplayer-5.48.0.tar.xz"