updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / phonon-quicktime-git / PKGBUILD
blobaab52446e14d9554d41d337e116909ad6e2549fb
1 pkgname=phonon-quicktime-git
2 pkgver=20110425
3 pkgrel=1
4 pkgdesc="Phonon QuickTime backend, git version"
5 arch=('i686' 'x86_64')  
6 url="https://projects.kde.org/projects/kdesupport/phonon/phonon-quicktime"
7 license=('LGPL')
8 depends=('phonon' )
9 makedepends=('git' 'automoc4' 'cmake' 'phonon')
10 provides=('phonon-quicktime' 'phonon-backend')
11 source=(phonon-qt7-noshow.patch)
13 _gitroot="git://anongit.kde.org/phonon-quicktime"
14 _gitname="phonon-quicktime"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Starting make..."
30   rm -rf "$srcdir/$_gitname-build"
31   git clone -l "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32   cd "$srcdir/$_gitname-build"
33   patch -Np1 -i ../phonon-qt7-noshow.patch
34   cmake -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) \
35         -DCMAKE_BUILD_TYPE=Release \
36         ../${_gitname}
37   make
38   make DESTDIR=$pkgdir install
39   rm -rf "$srcdir/$_gitname-build"
40
42 md5sums=('9985bb34557a4b80e6d6f66940c01357')