summaryrefslogtreecommitdiff
path: root/user/kmediaplayer/APKBUILD
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-24 21:18:09 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-03-24 21:18:09 -0500
commit8f9deeac4d6a73e689e09c9c761757eabaa277c0 (patch)
tree120e86dedaaad26fdaba7774ec6bb5c11634c1e6 /user/kmediaplayer/APKBUILD
parent709649c3f5e51ead8e276d3eda6fab697b3e3867 (diff)
downloadpackages-8f9deeac4d6a73e689e09c9c761757eabaa277c0.tar.gz
packages-8f9deeac4d6a73e689e09c9c761757eabaa277c0.tar.bz2
packages-8f9deeac4d6a73e689e09c9c761757eabaa277c0.tar.xz
packages-8f9deeac4d6a73e689e09c9c761757eabaa277c0.zip
user/kmediaplayer: new package
Diffstat (limited to 'user/kmediaplayer/APKBUILD')
-rw-r--r--user/kmediaplayer/APKBUILD45
1 files changed, 45 insertions, 0 deletions
diff --git a/user/kmediaplayer/APKBUILD b/user/kmediaplayer/APKBUILD
new file mode 100644
index 000000000..15e335bdb
--- /dev/null
+++ b/user/kmediaplayer/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=kmediaplayer
+pkgver=5.43.0
+pkgrel=0
+pkgdesc="Media player framework for KDE 5"
+url="https://www.kde.org/"
+arch="all"
+license="X11 LGPL-2.1+"
+depends=""
+depends_dev="qt5-qtbase-dev kparts-dev kxmlgui-dev"
+makedepends="$depends_dev cmake extra-cmake-modules"
+install=""
+subpackages="$pkgname-dev"
+source="https://download.kde.org/stable/frameworks/5.43/portingAids/kmediaplayer-$pkgver.tar.xz"
+builddir="$srcdir/kmediaplayer-$pkgver"
+
+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="2e4a0ad713da37521e236a4e1e6ad8bb1cec63546dcbb9c114a40b3165228ac447d54b0d774c576bd59ece219af5898fa033464c13b14ac82da7ab7e99fb49e2 kmediaplayer-5.43.0.tar.xz"