diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-04-05 18:45:01 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-04-05 18:45:01 -0500 |
commit | 8cfd83f7965aa98e8d03b9e0bcedbcc4e5c5577f (patch) | |
tree | 57150bb654720336e8330b8961faacc79523a912 /user/phonon-vlc/APKBUILD | |
parent | ac3d63bfd4466aa8cd9b893238a8e9523415b6cd (diff) | |
download | packages-8cfd83f7965aa98e8d03b9e0bcedbcc4e5c5577f.tar.gz packages-8cfd83f7965aa98e8d03b9e0bcedbcc4e5c5577f.tar.bz2 packages-8cfd83f7965aa98e8d03b9e0bcedbcc4e5c5577f.tar.xz packages-8cfd83f7965aa98e8d03b9e0bcedbcc4e5c5577f.zip |
user/phonon-vlc: new package
Diffstat (limited to 'user/phonon-vlc/APKBUILD')
-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" |