summaryrefslogtreecommitdiff
path: root/extra/liblastfm/PKGBUILD
blob: fff5a34c178dc0504f79cb7a33f8b1ce05efbd55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# $Id: PKGBUILD 212062 2014-05-06 02:04:21Z fyan $
# Maintainer:
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: XazZ <xazz.xazz [AT] googlemail.com>

pkgname=liblastfm
pkgver=1.0.8
pkgrel=1
pkgdesc="A Qt4 C++ library for the Last.fm webservices"
arch=('i686' 'x86_64')
url='https://github.com/lastfm/liblastfm/'
license=('GPL3')
depends=('qt4' 'fftw' 'libsamplerate')
makedepends=('cmake')
source=(${pkgname}-${pkgver}.tar.gz::"https://github.com/lastfm/${pkgname}/tarball/${pkgver}")
sha1sums=('6bfa30962cdabe175bba0abadbf6772fbbece199')

build() {
  mkdir build
  cd build
  cmake ../lastfm-${pkgname}-* \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib \
    -DBUILD_TESTS=OFF
  make
}

package(){
  cd build
  make DESTDIR="${pkgdir}" install
}