desktop/libechonest-qt4/PKGBUILD
2015-09-16 00:03:41 +00:00

31 lines
828 B
Bash

pkgname=libechonest-qt4
_pkgname=libechonest
pkgver=2.3.1
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')
source=(http://files.lfranchi.com/${_pkgname}-${pkgver}.tar.bz2)
sha1sums=('9d7245c71e707651a7054ce6f0d90b9a62004b23')
prepare() {
if [[ -e ${srcdir}/${_pkgname}-${pkgver}-build ]]; then rm -rf ${srcdir}/${_pkgname}-${pkgver}-build; fi
mkdir ${srcdir}/${_pkgname}-${pkgver}-build
}
build() {
cd ${srcdir}/${_pkgname}-${pkgver}-build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../${_pkgname}-${pkgver}
make
}
package() {
cd ${srcdir}/${_pkgname}-${pkgver}-build
make DESTDIR=${pkgdir} install
}