aboutsummaryrefslogtreecommitdiffstats
path: root/main/liblastfm
diff options
context:
space:
mode:
Diffstat (limited to 'main/liblastfm')
-rw-r--r--main/liblastfm/APKBUILD47
1 files changed, 47 insertions, 0 deletions
diff --git a/main/liblastfm/APKBUILD b/main/liblastfm/APKBUILD
new file mode 100644
index 0000000000..226915a99d
--- /dev/null
+++ b/main/liblastfm/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=liblastfm
+pkgver=1.0.9
+pkgrel=0
+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"