aboutsummaryrefslogtreecommitdiffstats
path: root/community/phonon
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-05-28 21:52:19 +0200
committerFrancesco Colista <fcolista@alpinelinux.org>2019-05-29 12:26:57 +0000
commitdcd9d99c3e45ab8b070ccb76b32354cc60d7c154 (patch)
tree0faff745813fa3a2aa6d4a2ac7a54f39ef9d20e7 /community/phonon
parent71813b4a80603519996e0f1862af08dde1cd4f12 (diff)
downloadaports-dcd9d99c3e45ab8b070ccb76b32354cc60d7c154.tar.bz2
aports-dcd9d99c3e45ab8b070ccb76b32354cc60d7c154.tar.xz
community/phonon: move to Qt5 and modernize
Diffstat (limited to 'community/phonon')
-rw-r--r--community/phonon/APKBUILD43
1 files changed, 13 insertions, 30 deletions
diff --git a/community/phonon/APKBUILD b/community/phonon/APKBUILD
index ecb007aa9c..6ddef6216e 100644
--- a/community/phonon/APKBUILD
+++ b/community/phonon/APKBUILD
@@ -1,48 +1,31 @@
-# Contributor:
+# Contributor:
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=phonon
pkgver=4.10.2
-pkgrel=0
+pkgrel=1
pkgdesc="KDE multimedia backend"
url="https://phonon.kde.org/"
arch="all"
-license="LGPL"
-depends=
-depends_dev="glib-dev"
-makedepends="glib-dev qt-dev cmake automoc4"
-install=""
+license="LGPL-2.1-or-later"
+depends_dev="qt5-qtdeclarative-dev glib-dev"
+makedepends="$depends_dev extra-cmake-modules qt5-qtbase-dev"
subpackages="$pkgname-dev"
source="http://download.kde.org/stable/phonon/${pkgver}/phonon-$pkgver.tar.xz"
options="!check" # No test configuration file found!
-_builddir="$srcdir"/phonon-$pkgver
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
- mkdir -p "$_builddir"/build
-}
-
build() {
- cd "$_builddir"/build
- cmake -DCMAKE_INSTALL_PREFIX=/usr \
- -DCMAKE_BUILD_TYPE=Release \
- -DCMAKE_INSTALL_LIBDIR=lib \
- -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=FALSE \
- -DDBUS_INTERFACES_INSTALL_DIR=/usr/share/dbus-1/interfaces \
- -Wno-dev \
- "$_builddir" || return 1
- make || return 1
+ cmake \
+ -DCMAKE_BUILD_TYPE=RelWithDebugInfo \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=FALSE \
+ -DPHONON_BUILD_PHONON4QT5=ON
+ make
}
package() {
- cd "$_builddir"/build
- make DESTDIR="$pkgdir" install || return 1
+ DESTDIR="$pkgdir" make install
}
sha512sums="205c2f41691ed37a2b24aa5e900f7720ba024d2046ea4bf0a9b9c46235ffd72dfb4010287ccf753b13e395f84c2a202cbb76454806de3519faf52c3ac7001c4e phonon-4.10.2.tar.xz"