summaryrefslogblamecommitdiff
path: root/user/phonon-vlc/APKBUILD
blob: 19a7ec59ed468a3ed0b8b9461493464616336f51 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11


                                                  
             






                                                                         
                                                                                                            
                                             

         















                                                                                          



                                          


                                      
                                                                                                                                                                               
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=phonon-vlc
pkgver=0.10.2
pkgrel=0
pkgdesc="Phonon backend utilising VLC for media playback"
url="https://www.kde.org/"
arch="all"
license="LGPL-2.1+"
depends="vlc"
makedepends="cmake extra-cmake-modules qt5-qtbase-dev phonon-dev vlc-dev"
source="https://download.kde.org/stable/phonon/phonon-backend-vlc/$pkgver/phonon-backend-vlc-$pkgver.tar.xz"
builddir="$srcdir/phonon-backend-vlc-$pkgver"

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" \
		-DPHONON_BUILD_PHONON4QT5=True \
		${CMAKE_CROSSOPTS}
	make
}

check() {
	CTEST_OUTPUT_ON_FAILURE=TRUE ctest
}

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

sha512sums="3c4e7c60582d7871b209f4b38b139f43ab5f97618399164ecc649cd0e077a1d4c7848bc5c5c213d747cf7e5f1252ff53ded745880dfd36247494479840789ba5  phonon-backend-vlc-0.10.2.tar.xz"