From d91a284530302883e3e63235b77a660171e6a745 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 27 Aug 2018 19:25:02 +0000 Subject: experimental: bunch of crap from x86_64 builder that needs worked on --- experimental/kmplayer/APKBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 experimental/kmplayer/APKBUILD (limited to 'experimental/kmplayer') diff --git a/experimental/kmplayer/APKBUILD b/experimental/kmplayer/APKBUILD new file mode 100644 index 000000000..7313a5a0a --- /dev/null +++ b/experimental/kmplayer/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: A. Wilcox +# Maintainer: A. Wilcox +pkgname=kmplayer +pkgver=0.12.0b +pkgrel=0 +pkgdesc="KDE video player" +url="https://kmplayer.kde.org/" +arch="all" +license="GPL-2.0-only" +depends="" +makedepends="cmake extra-cmake-modules qt5-qtbase-dev xcb-util-dev kconfig-dev + xcb-util-cursor-dev xcb-util-keysyms-dev xcb-util-wm-dev qt5-qtsvg-dev + qt5-qtx11extras-dev kcoreaddons-dev kinit-dev ki18n-dev kparts-dev + kdelibs4support-dev kio-dev kwidgetsaddons-dev kmediaplayer-dev + cairo-dev gtk+2.0-dev" +install="" +subpackages="$pkgname-doc $pkgname-lang $pkgname-libs $pkgname-plugin" +source="https://download.kde.org/stable/kmplayer/0.12/kmplayer-$pkgver.tar.bz2" +builddir="$srcdir/kmplayer-$pkgver" + +build() { + cd "$builddir" + mkdir build + cd 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" \ + ${CMAKE_CROSSOPTS} \ + .. + make +} + +check() { + cd "$builddir" + CTEST_OUTPUT_ON_FAILURE=TRUE ctest +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install +} + +sha512sums="d34c496d0c24c6d5c1bb675b83fac60da5c9672e4076aed72bac2e9b333e88d031076e7e386ec7b61ae8ece88870f6187c61f483f425aa78edd1e443c7f2e882 kmplayer-0.12.0b.tar.bz2" -- cgit v1.2.3-70-g09d2