updated on Tue Jan 17 12:00:36 UTC 2012
[aur-mirror.git] / tomahawk / PKGBUILD
blob51686f93dbce0ba851af7756513c6e8da33dcbaf
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 ##############################################################
15 pkgname=tomahawk
16 pkgver=0.3.3
17 pkgrel=3
18 pkgdesc="A Music Player App written in C++/Qt"
19 arch=('i686' 'x86_64')
20 url="http://tomahawk-player.org/"
21 license=('GPL3')
22 depends=('phonon' 'taglib' 'boost' 'clucene' 'libechonest' 'jreen' 'qtweetlib' 'quazip' 'attica' 'qtwebkit')
23 makedepends=('git' 'cmake')
24 optdepends=('tomahawk-spotify-git: spotify resolver')
25 provides=('tomahawk')
26 conflicts=('tomahawk-git')
27 options=(!strip)
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
34   options=()
37 build() {
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}
50   make
53 package() {
54   cd ${srcdir}/${pkgname}-${pkgver}-build
55   make DESTDIR=${pkgdir} install