aboutsummaryrefslogtreecommitdiffstats
path: root/community/phonon/APKBUILD
blob: ecb007aa9c1997ab18d7d650368520c1080bbcf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: 
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=phonon
pkgver=4.10.2
pkgrel=0
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=""
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
}

package() {
	cd "$_builddir"/build
	make DESTDIR="$pkgdir" install || return 1
}

sha512sums="205c2f41691ed37a2b24aa5e900f7720ba024d2046ea4bf0a9b9c46235ffd72dfb4010287ccf753b13e395f84c2a202cbb76454806de3519faf52c3ac7001c4e  phonon-4.10.2.tar.xz"