updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / amarok-minimal-git / PKGBUILD
blob2743860b1012f06a26f7eafc91056d194b1cba3e
1 # Contributor: CtHx
3 pkgname=amarok-minimal-git
4 pkgver=20111213
5 pkgrel=1
6 pkgdesc="AmaroK - a media player for KDE. Without lastfm, mp3tunes, mtp and ipod support. GIT version"
7 arch=('i686' 'x86_64')
8 url="http://amarok.kde.org"
9 license=('GPL')
10 depends=('kdelibs>=4.4' 'kdebase-runtime>=4.4' 'phonon' 'taglib>=1.6' 'taglib-extras>=1.0' 'qt>=4.5' 'qca' "libmysqlclient>=${mysqlver}")
11 makedepends=('cmake>=2.6.2' 'qtscriptgenerator>=0.1' 'automoc4' 'git')
12 conflicts=('amarok2' 'amarok' 'amarok2-svn' 'amarok-svn' 'amarok-git')
13 source=()
14 md5sums=()
16 _gitroot="git://anongit.kde.org/amarok.git"
17 _gitname="amarok"
20 build() {
21   cd ${srcdir}
22   msg "Connecting to GIT server...."
24   if [ -d "${srcdir}/${_gitname}" ] ; then
25     cd ${_gitname} && git pull --rebase
26   else
27     git clone ${_gitroot}
28     cd ${_gitname}
29   fi
30   
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
33   # strigi -> optional
34   #sed -i 's/strigi.sourceforge.net\" TRUE/strigi.sourceforge.net\" FALSE/' CMakeLists.txt
35   # switch off services
36   sed -i '/amazon/d' src/services/CMakeLists.txt
37   sed -i '/magnatune/d' src/services/CMakeLists.txt
38   sed -i '/ampache/d' src/services/CMakeLists.txt
39   sed -i '/mp3tunes/d' src/services/CMakeLists.txt
40   sed -i '/jamendo/d' src/services/CMakeLists.txt
41   sed -i '/opmldirectory/d' src/services/CMakeLists.txt
42   
43   mkdir amarok-build
44   cd amarok-build
46   cmake .. -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` \
47            -DCMAKE_BUILD_TYPE=Release \
48            -DWITH_LibLastFm=OFF \
49            -DWITH_MP3Tunes=OFF \
50            -DWITH_Mtp=OFF \
51            -DWITH_IPOD=OFF \
52            -DWITH_LibOFA=OFF \
53            -DWITH_QJSON=OFF \
54            -DWITH_Mygpo-qt=OFF \
55            || return 1
57   make || return 1
58   make DESTDIR=${pkgdir} install || return 1
59   cd .. && rm -rf amarok-build
60   # rewrite changes
61   git reset --hard