diff options
Diffstat (limited to 'user/phonon-vlc')
-rw-r--r-- | user/phonon-vlc/APKBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/user/phonon-vlc/APKBUILD b/user/phonon-vlc/APKBUILD new file mode 100644 index 000000000..5d305485a --- /dev/null +++ b/user/phonon-vlc/APKBUILD @@ -0,0 +1,43 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=phonon-vlc +pkgver=0.10.1 +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" +install= +subpackages="" +source="https://download.kde.org/stable/phonon/phonon-backend-vlc/$pkgver/phonon-backend-vlc-$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" \ + -DPHONON_BUILD_PHONON4QT5=True \ + ${CMAKE_CROSSOPTS} + make +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="fa94298a8236c29f792285d3f288140d244e0eacba02511a32ee56b5bace50f92a93a714b5c44dc5bafb15b2a9d5ae792231e78dce8ca1a45ab3a328492911df phonon-backend-vlc-0.10.1.tar.xz" |