updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / tomahawk / PKGBUILD
blob5f7d308cbe4617ea8429ac57d62e5da82eb14784
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=4
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_LIBDIR=lib \
48         -DCMAKE_INSTALL_LIBEXECDIR=lib/${pkgname} \
49         -DCMAKE_BUILD_TYPE=${_buildtype} \
50         ../${pkgname}-${pkgver}
51   make
54 package() {
55   cd ${srcdir}/${pkgname}-${pkgver}-build
56   make DESTDIR=${pkgdir} install