6.3.1.arch2-1
[arch-packages.git] / liblastfm / trunk / PKGBUILD
blob4a4c3ba201c419cfc0b494ef4ae6a01e9433fa20
1 # Maintainer:
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: XazZ <xazz.xazz [AT] googlemail.com>
5 pkgbase=liblastfm
6 pkgname=(liblastfm-qt5)
7 pkgver=1.1.0
8 pkgrel=1
9 pkgdesc="A Qt C++ library for the Last.fm webservices"
10 arch=('x86_64')
11 url='https://github.com/lastfm/liblastfm/'
12 license=('GPL3')
13 depends=('qt5-base' 'fftw' 'libsamplerate')
14 makedepends=('cmake')
15 source=(https://github.com/lastfm/${pkgbase}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
16         liblastfm-qt5.11.patch)
17 sha1sums=('a84f00a42b3bb8c0f8845ce29c776d609a3b44ac'
18           '40d84032eaeae32072715732b9fe67295483ffad')
20 prepare() {
21   cd ${pkgbase}-${pkgver}
22   patch -p1 -i ../liblastfm-qt5.11.patch # Fix build with Qt 5.11
25 build() {
26   mkdir build
27   cd build
28   cmake ../${pkgbase}-${pkgver} \
29     -DCMAKE_BUILD_TYPE=Release \
30     -DCMAKE_INSTALL_PREFIX=/usr \
31     -DCMAKE_INSTALL_LIBDIR=/usr/lib \
32     -DCMAKE_CXX_STANDARD=14 \
33     -DBUILD_TESTS=OFF
34   make
37 package_liblastfm-qt5() {
38   cd build
39   make DESTDIR="${pkgdir}" install
40