summaryrefslogtreecommitdiffstats
path: root/abs/extra/phonon/PKGBUILD
blob: 40b13d22bca616a895d8170aa81f887398a27699 (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
49
50
51
52
53
# $Id$
# Maintainer: Andrea Scarpino <andrea@archlinux.org>

pkgbase=phonon
pkgname=('phonon' 'phonon-xine' 'phonon-gstreamer')
pkgver=4.4.2
pkgrel=3
arch=('i686' 'x86_64')
url="http://phonon.kde.org"
license=('LGPL')
makedepends=('cmake' 'automoc4' 'qt' 'xine-lib' 'gstreamer0.10-base-plugins' 'mesa')
source=("http://download.kde.org/stable/${pkgname}/${pkgver}/${pkgbase}-${pkgver}.tar.bz2")
sha1sums=('c329d924fb75a89a9de8a4d799ff4dcd7ee3302e')

build() {
  cd ${srcdir}
  mkdir build
  cd build
  cmake ../${pkgbase}-${pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_SKIP_RPATH=ON \
    -DWITH_PulseAudio=OFF
  make
}

package_phonon(){
  pkgdesc="The multimedia API for KDE4"
  depends=('qt' 'phonon-backend')
  cd ${srcdir}/build/phonon
  make DESTDIR=${pkgdir} install
  cd ${srcdir}/build/includes
  make DESTDIR=${pkgdir} install
  cd ${srcdir}/build
  install -Dm644 phonon.pc ${pkgdir}/usr/lib/pkgconfig/phonon.pc
}

package_phonon-gstreamer(){
  pkgdesc="Phonon Gstreamer backend"
  depends=('qt' 'gstreamer0.10-base-plugins')
  provides=('phonon-backend')
  cd ${srcdir}/build/gstreamer
  make DESTDIR=${pkgdir} install
}

package_phonon-xine(){
  pkgdesc="Phonon Xine backend"
  depends=('qt' 'xine-lib')
  provides=('phonon-backend')
  cd ${srcdir}/build/xine
  make DESTDIR=${pkgdir} install
}