1 # Contributor: Jakub Schmidtke <sjakub-at-gmail-dot-com>
4 conflicts=('amarok' 'amarok2')
5 replaces=('amarok-svn' 'amarok2-svn')
8 pkgdesc="A media player for KDE - GIT version"
10 url="http://amarok.kde.org"
11 license=('GPL2' 'LGPL2' 'FDL')
12 depends=('kdebase-runtime' 'mysql' 'qtscriptgenerator' 'taglib-extras'
13 'liblastfm' 'ffmpeg' 'libofa')
14 makedepends=('pkgconfig' 'automoc4' 'cmake' 'libgpod' 'libmtp' 'loudmouth'
16 optdepends=("libgpod: support for Apple iPod audio devices"
17 "libmtp: support for portable media devices"
18 "loudmouth: backend needed by mp3tunes for syncing"
19 "ifuse: support for Apple iPod Touch and iPhone")
20 install="${pkgname}.install"
22 _gitroot="git://anongit.kde.org/amarok.git"
30 msg "Connecting to GIT server...."
32 if [ -d ${_gitname}/.git ] ; then
35 # Change remote url to anongit
36 if [ -z $( git branch -v | grep anongit ) ] ; then
37 git remote set-url origin ${_gitroot}
41 msg "The local files are updated."
43 git clone ${_gitroot} ${_gitname}
46 msg "GIT checkout done or server timeout"
47 msg "Starting make..."
49 rm -rf ${srcdir}/build
50 mkdir -p ${srcdir}/build
51 cd ${srcdir}/build || return 1
53 cmake ../${_gitname} \
54 -DCMAKE_BUILD_TYPE=Release \
55 -DCMAKE_INSTALL_PREFIX=/usr
61 make DESTDIR=${pkgdir} install
63 ## One of libraries for strigi casuses problems with m4v files
64 #rm -rf ${pkgdir}/usr/lib/strigi