1 # Maintainer: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
2 # Contributor: Rick W. Chen <stuffcorpse@archlinux.us>
4 ##############################################################
5 #### The section below can be adjusted to suit your needs ####
6 ##############################################################
8 # What type of build do you want?
9 # See http://techbase.kde.org/Development/CMake/Addons_for_KDE#Buildtypes to check what is supported.
10 # You can change it to for example RelWithDebInfo to help with debugging.
14 ##############################################################
19 pkgdesc="C++ library for interfacing with Echo Nest"
20 arch=('i686' 'x86_64')
21 url="https://projects.kde.org/projects/playground/libs/libechonest"
24 makedepends=('cmake' 'pkg-config')
25 provides=('libechonest')
26 conflicts=('libechonest-git')
28 source=(http://pwsp.cleinias.com/${pkgname}-${pkgver}.tar.bz2)
29 md5sums=('038c4e390651b207575a12315ed3e687')
31 # Clean options array to strip pkg if release buildtype is chosen
32 if [[ ${_buildtype} == "Release" ]] || [[ ${_buildtype} == "release" ]]; then
37 msg "Starting build..."
39 if [[ -e ${srcdir}/${pkgname}-${pkgver}-build ]]; then rm -rf ${srcdir}/${pkgname}-${pkgver}-build; fi
40 mkdir ${srcdir}/${pkgname}-${pkgver}-build
41 cd ${srcdir}/${pkgname}-${pkgver}-build
43 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=${_buildtype} ../${pkgname}-${pkgver}
48 cd ${srcdir}/${pkgname}-${pkgver}-build
49 make DESTDIR=${pkgdir} install