2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: XazZ <xazz.xazz [AT] googlemail.com>
6 pkgname=(liblastfm-qt5)
9 pkgdesc="A Qt C++ library for the Last.fm webservices"
11 url='https://github.com/lastfm/liblastfm/'
13 depends=('qt5-base' 'fftw' 'libsamplerate')
15 source=(https://github.com/lastfm/${pkgbase}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
16 liblastfm-qt5.11.patch)
17 sha1sums=('a84f00a42b3bb8c0f8845ce29c776d609a3b44ac'
18 '40d84032eaeae32072715732b9fe67295483ffad')
21 cd ${pkgbase}-${pkgver}
22 patch -p1 -i ../liblastfm-qt5.11.patch # Fix build with Qt 5.11
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 \
37 package_liblastfm-qt5() {
39 make DESTDIR="${pkgdir}" install