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 RelWithDebInfo to help with debugging.
11 _buildtype="RelWithDebInfo"
13 ##############################################################
18 pkgdesc="A Music Player App written in C++/Qt"
19 arch=('i686' 'x86_64')
20 url="http://tomahawk-player.org/"
22 depends=('phonon' 'taglib' 'boost' 'clucene' 'libechonest' 'jreen' 'qtweetlib' 'quazip' 'attica' 'qtwebkit')
23 makedepends=('git' 'cmake')
24 optdepends=('tomahawk-spotify-git: spotify resolver')
26 conflicts=('tomahawk-git')
28 source=(http://download.tomahawk-player.org/${pkgname}-${pkgver}.tar.bz2)
29 md5sums=('0ee6ff7cd7fcf2dd01db6772902efbb4')
30 install=tomahawk.install
32 # Clean options array to strip pkg if release buildtype is chosen
33 if [[ ${_buildtype} == "Release" ]] || [[ ${_buildtype} == "release" ]]; then
38 cd ${srcdir}/${pkgname}-${pkgver}
40 msg "Starting build..."
42 if [[ -e ${srcdir}/${pkgname}-${pkgver}-build ]]; then rm -rf ${srcdir}/${pkgname}-${pkgver}-build; fi
43 mkdir ${srcdir}/${pkgname}-${pkgver}-build
44 cd ${srcdir}/${pkgname}-${pkgver}-build
46 cmake -DCMAKE_INSTALL_PREFIX=/usr \
47 -DCMAKE_INSTALL_LIBEXECDIR=lib/${pkgname} \
48 -DCMAKE_BUILD_TYPE=${_buildtype} \
49 ../${pkgname}-${pkgver}
54 cd ${srcdir}/${pkgname}-${pkgver}-build
55 make DESTDIR=${pkgdir} install