1 # Maintainer: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
3 ##############################################################
4 #### The section below can be adjusted to suit your needs ####
5 ##############################################################
7 # What type of build do you want?
8 # See http://techbase.kde.org/Development/CMake/Addons_for_KDE#Buildtypes to check what is supported.
9 # Default is DebugFull to help with debugging.
11 _buildtype="DebugFull"
13 # Which branch do you want to build from?
14 # Default is "master".
18 ##############################################################
23 pkgdesc="A Music Player App written in C++/Qt - development version"
24 arch=('i686' 'x86_64')
25 url="http://tomahawk-player.org/"
27 depends=('phonon' 'taglib' 'boost' 'clucene' 'libechonest' 'jreen' 'qtweetlib' 'quazip' 'attica' 'qtwebkit')
28 makedepends=('git' 'cmake')
29 optdepends=('tomahawk-spotify-git: spotify resolver')
31 conflicts=('tomahawk')
33 install=tomahawk.install
35 # Clean options array to strip pkg if release buildtype is chosen
36 if [[ ${_buildtype} == "Release" ]] || [[ ${_buildtype} == "release" ]]; then
40 _gitroot="git://github.com/tomahawk-player/tomahawk.git"
45 msg "Connecting to GIT server..."
47 if [ -d ${_gitname} ]; then
48 cd ${_gitname} && git checkout ${_gitbranch} && git pull origin ${_gitbranch}
50 git clone --depth 1 ${_gitroot} -b ${_gitbranch}
53 msg "GIT checkout done or server timeout"
54 msg "Starting build..."
56 if [[ -e ${srcdir}/${_gitname}-build ]]; then rm -rf ${srcdir}/${_gitname}-build; fi
57 mkdir ${srcdir}/${_gitname}-build
58 cd ${srcdir}/${_gitname}-build
60 cmake -DCMAKE_INSTALL_PREFIX=/usr \
61 -DCMAKE_INSTALL_LIBDIR=lib \
62 -DCMAKE_INSTALL_LIBEXECDIR=lib/${_gitname} \
63 -DCMAKE_BUILD_TYPE=${_buildtype} \
69 cd ${srcdir}/${_gitname}-build
70 make DESTDIR=${pkgdir} install