summaryrefslogtreecommitdiff
path: root/extra/liblastfm/PKGBUILD
blob: fc4e68b663aa43e2c2b4d249bc1d0b13233622c2 (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 181867 2013-04-05 02:24:25Z eric $
# Maintainer:
# Contributor: Andrea Scarpino <andrea@archlinux.org>
# Contributor: XazZ <xazz.xazz [AT] googlemail.com>

pkgname=liblastfm
pkgver=1.0.7
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=('b679bf76272b05373efcc2a8f3ee809599607853')

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
}