aboutsummaryrefslogblamecommitdiffstats
path: root/community/phonon/APKBUILD
blob: bb92847ee2ca1e21f1cea63f8b90ba671460ece1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                                         
                                                          
              
             

                                
                             


              

                                            

                          
                                                                              
 

                                                    













                                                                        






                                                                          







                                                  
                                                                                                                                                                   
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=phonon
pkgver=4.10.1
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="a1cc0960c587d09a2fb0f43ae82147df133c34cba7bf01f5720b4b27aca4dda1d83444e89e40fb2f25828d152f89ccfff56d2d4649007c57b7df9eca8c64c007  phonon-4.10.1.tar.xz"