blob: cf0da0c29df7fc5374589a27d24a82e03cbc936f (
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=liblastfm
pkgver=1.0.9
pkgrel=1
pkgdesc="A Qt C++ library for the Last.fm webservices"
url="https://github.com/lastfm/liblastfm"
arch="all"
license="GPL3"
depends=""
depends_dev="qt-dev libsamplerate-dev fftw-dev"
makedepends="$depends_dev cmake"
install=""
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/lastfm/liblastfm/archive/$pkgver.tar.gz"
_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
mkdir "$_builddir"/build
cd "$_builddir"/build
cmake "$_builddir" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
-DBUILD_TESTS=OFF \
|| return 1
}
package() {
cd "$_builddir"/build
make DESTDIR="${pkgdir}" install
}
md5sums="8748f423f66f2fbc38c39f9153d01a71 liblastfm-1.0.9.tar.gz"
sha256sums="5276b5fe00932479ce6fe370ba3213f3ab842d70a7d55e4bead6e26738425f7b liblastfm-1.0.9.tar.gz"
sha512sums="9d2bcf71b26d8a95920a07649c97b3faa071c49a8269268bb08fab01537392774873233d03cada09d3ce3fe2c45b0affdb74cd27c41f69342b973896effe1018 liblastfm-1.0.9.tar.gz"
|