desktop/libechonest/PKGBUILD
2014-06-06 00:29:21 +00:00

55 lines
1.7 KiB
Bash

#
# Apps Packages for Chakra, part of chakra-project.org
#
# Maintainer: kote <koteccr at gmail dot com>
# Arch Linux contributors and maintainers:
# Maintainer: Kuba Serafinowski <zizzfizzix(at)gmail(dot)com>
# https://github.com/zizzfizzix/pkgbuilds
# Contributor: Rick W. Chen <stuffcorpse@archlinux.us>
##############################################################
#### The section below can be adjusted to suit your needs ####
##############################################################
# What type of build do you want?
# See http://techbase.kde.org/Development/CMake/Addons_for_KDE#Buildtypes to check what is supported.
# You can change it to for example RelWithDebInfo to help with debugging.
_buildtype="Release"
############################################################
pkgname=libechonest
pkgver=2.2.0
pkgrel=1
pkgdesc="C++ library for interfacing with Echo Nest"
arch=('x86_64')
url="https://projects.kde.org/projects/playground/libs/libechonest"
license=('GPL')
depends=('qjson')
makedepends=('cmake' 'pkg-config')
provides=('libechonest')
conflicts=('libechonest-git')
options=(!strip)
source=(http://files.lfranchi.com/${pkgname}-${pkgver}.tar.bz2)
sha1sums=('fec281d9288c2a4fabd2dd275f1a508dd6d1bc5c')
# Clean options array to strip pkg if release buildtype is chosen
if [[ ${_buildtype} == "Release" ]] || [[ ${_buildtype} == "release" ]]; then
options=()
fi
build() {
if [[ -e ${srcdir}/${pkgname}-${pkgver}-build ]]; then rm -rf ${srcdir}/${pkgname}-${pkgver}-build; fi
mkdir ${srcdir}/${pkgname}-${pkgver}-build
cd ${srcdir}/${pkgname}-${pkgver}-build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=${_buildtype} ../${pkgname}-${pkgver}
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}-build
make DESTDIR=${pkgdir} install
}