blob: 0722ad188e8632ab0e3cdc2d4dba168fee1ce260 (
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
54
55
56
57
58
59
60
61
62
63
|
# $Id: PKGBUILD 211973 2014-05-02 12:02:18Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
pkgbase=phonon-gstreamer
pkgname=('phonon-qt4-gstreamer' 'phonon-qt5-gstreamer')
pkgver=4.7.1
pkgrel=1
arch=('i686' 'x86_64')
url='http://phonon.kde.org/'
license=('LGPL')
makedepends=('gstreamer0.10-base-plugins' 'cmake' 'automoc4' 'phonon-qt4' 'phonon-qt5')
source=("http://download.kde.org/stable/phonon/phonon-backend-gstreamer/${pkgver}/phonon-backend-gstreamer-${pkgver}.tar.xz")
md5sums=('7c0cfab4ec0bbe1f201503e6ccc7290a')
prepare() {
mkdir build-qt4
mkdir build-qt5
}
build() {
cd build-qt4
cmake ../phonon-backend-gstreamer-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_LIBDIR=lib
make
cd ../build-qt5
cmake ../phonon-backend-gstreamer-${pkgver} \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_SKIP_RPATH=ON \
-DCMAKE_INSTALL_LIBDIR=lib \
-DPHONON_BUILD_PHONON4QT5=ON
make
}
package_phonon-qt4-gstreamer() {
pkgdesc="Phonon GStreamer backend for Qt4"
depends=('gstreamer0.10-base-plugins')
provides=('phonon-backend' 'phonon-qt4-backend')
replaces=('phonon-gstreamer')
conflicts=('phonon-gstreamer')
install="phonon-qt4-gstreamer.install"
cd build-qt4
make DESTDIR="${pkgdir}" install
}
package_phonon-qt5-gstreamer() {
pkgdesc="Phonon GStreamer backend for Qt5"
depends=('gstreamer0.10-base-plugins')
provides=('phonon-qt5-backend')
replaces=('phonon-gstreamer')
conflicts=('phonon-gstreamer')
cd build-qt5
make DESTDIR="${pkgdir}" install
# Those are not needed
rm -rf "${pkgdir}"/usr/share
}
|