summaryrefslogtreecommitdiff
path: root/extra/phonon/PKGBUILD
blob: b869cdf3b4acd15b9f9cfc82161972b589e3dcb2 (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
# $Id: PKGBUILD 141341 2011-10-29 16:03:56Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgname=phonon
pkgver=4.5.1
pkgrel=2
epoch=1
arch=('i686' 'x86_64')
url="http://phonon.kde.org"
license=('LGPL')
pkgdesc="The multimedia framework for KDE"
depends=('qt' 'phonon-backend' 'libpulse' 'libqzeitgeist')
optdepends=('pulseaudio: PulseAudio support')
makedepends=('cmake' 'automoc4' 'pulseaudio')
source=("http://download.kde.org/stable/${pkgname}/${pkgver}/src/${pkgname}-${pkgver}.tar.xz"
       'libqzeitgeist08.patch')
md5sums=('3df071b7f9996afcd67b18958955ecdd'
         '99de3dc908277199b502e54613925ff6')

build() {
  cd "${srcdir}"/${pkgname}-${pkgver}
  patch -Np1 -i "${srcdir}"/libqzeitgeist08.patch

  cd "${srcdir}"
  mkdir build
  cd build
  cmake ../${pkgname}-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_SKIP_RPATH=ON
  make
}

package(){
  cd "${srcdir}"/build
  make DESTDIR="${pkgdir}" install
}