core/liblastfm/PKGBUILD
2015-11-17 21:48:03 +01:00

30 lines
699 B
Bash

pkgname=liblastfm
pkgver=1.0.9
pkgrel=4
pkgdesc='A Qt C++ library for the Last.fm webservices'
url="https://github.com/lastfm/liblastfm/"
license=('GPL3')
arch=('x86_64')
depends=('qt5-base')
makedepends=('cmake' 'qt5-tools')
conflicts=("liblastfm-qt4")
replaces=("liblastfm-qt4")
source=("https://github.com/lastfm/liblastfm/archive/${pkgver}.tar.gz")
sha1sums=('4a6323538a26c5ea2080a8ebe58e4407dbc42397')
build() {
mkdir -p build && cd build
cmake ../${pkgname}-${pkgver} \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_FINGERPRINT=OFF
make
}
package() {
cd build
make DESTDIR=${pkgdir} install
}