summaryrefslogtreecommitdiff
path: root/kde-unstable/kdemultimedia/PKGBUILD
blob: 901c4fe13b2b58302f93b4a004b82dd760c67d1f (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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# $Id: PKGBUILD 131351 2011-07-12 19:24:04Z andrea $
# Maintainer: Andrea Scarpino <andrea@archlinux.org>
# Contributor: Pierre Schmitz <pierre@archlinux.de>

pkgbase=kdemultimedia
pkgname=('kdemultimedia-dragonplayer'
         'kdemultimedia-ffmpegthumbs'
         'kdemultimedia-juk'
         'kdemultimedia-kioslave'
         'kdemultimedia-kmix'
         'kdemultimedia-kscd'
         'kdemultimedia-mplayerthumbs')
pkgver=4.6.95
pkgrel=1
arch=('i686' 'x86_64')
url='http://www.kde.org'
license=('GPL' 'LGPL' 'FDL')
groups=('kde' 'kdemultimedia')
makedepends=('pkgconfig' 'cmake' 'automoc4' 'kdelibs' 'tunepimp'
            'ffmpeg' 'mplayer' 'pulseaudio' 'libmusicbrainz3')
source=("http://download.kde.org/unstable/${pkgver}/src/${pkgbase}-${pkgver}.tar.bz2"
        'mplayerthumbs.config'
        'fix-memleak-in-kmix.patch')
sha1sums=('81c9755c5f1bf41b4af0452ba9522f23096f47a9'
          'ba016fa2563c14ffcba852c62506b66bfc6ee683'
          '80370de30898f1ba1a6db057d34324abdcc57384')

build() {
    cd "${srcdir}"/${pkgbase}-${pkgver}
    patch -p1 -i "${srcdir}"/fix-memleak-in-kmix.patch

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

package_kdemultimedia-dragonplayer() {
	pkgdesc='Video Player'
	depends=('kdebase-runtime')
	url="http://kde.org/applications/multimedia/dragonplayer/"
	install='kdemultimedia.install'
	cd $srcdir/build/dragonplayer
	make DESTDIR=$pkgdir install
	cd $srcdir/build/doc/dragonplayer
	make DESTDIR=$pkgdir install
}

package_kdemultimedia-ffmpegthumbs() {
	pkgdesc='Video Files (ffmpegthumbs)'
	depends=('kdebase-runtime' 'ffmpeg')
	install='kdemultimedia.install'
	cd $srcdir/build/ffmpegthumbs
	make DESTDIR=$pkgdir install
}

package_kdemultimedia-juk() {
	pkgdesc='Music Player'
	depends=('kdebase-runtime' 'tunepimp')
	url="http://kde.org/applications/multimedia/juk"
	install='kdemultimedia.install'
	cd $srcdir/build/juk
	make DESTDIR=$pkgdir install
	cd $srcdir/build/doc/juk
	make DESTDIR=$pkgdir install
}

package_kdemultimedia-kioslave() {
	pkgdesc='Audio CD Browser'
	depends=('kdelibs' 'libmusicbrainz3' 'cdparanoia')
	conflicts=('kdemultimedia-libkcddb' 'kdemultimedia-libkcompactdisc')
	replaces=('kdemultimedia-libkcddb' 'kdemultimedia-libkcompactdisc')
	for i in kioslave doc/kioslave libkcddb libkcompactdisc; do
		cd $srcdir/build/${i}
		make DESTDIR=$pkgdir install
	done
}

package_kdemultimedia-kmix() {
	pkgdesc='Sound Mixer'
	depends=('kdebase-runtime')
	url="http://kde.org/applications/multimedia/kmix"
	install='kdemultimedia.install'
	cd $srcdir/build/kmix
	make DESTDIR=$pkgdir install
	cd $srcdir/build/doc/kmix
	make DESTDIR=$pkgdir install
}

package_kdemultimedia-kscd() {
	pkgdesc='CD Player'
	depends=('kdebase-runtime' 'libmusicbrainz3')
	url="http://kde.org/applications/multimedia/kscd"
	install='kdemultimedia.install'
	cd $srcdir/build/kscd
	make DESTDIR=$pkgdir install
	cd $srcdir/build/doc/kcontrol/cddbretrieval
	make DESTDIR=$pkgdir install
}

package_kdemultimedia-mplayerthumbs() {
	pkgdesc='Video Files (MPlayerThumbs)'
	depends=('kdebase-runtime' 'mplayer')
	replaces=('mplayerthumbs')
	conflicts=('mplayerthumbs')
	cd $srcdir/build/mplayerthumbs
	make DESTDIR=$pkgdir install
	install -D -m644 $srcdir/mplayerthumbs.config $pkgdir/usr/share/config/mplayerthumbs
}