git » liblastfm.git » commit f35750e

Update to 1.1.0

author Antonio Rojas
2021-10-06 18:33:46 UTC
committer Antonio Rojas
2021-10-06 18:33:46 UTC
parent b06cdf711778bed9ec0bf193923e3e3d2053ae01

Update to 1.1.0

PKGBUILD +9 -11

diff --git a/PKGBUILD b/PKGBUILD
index 0f539b3..4a4c3ba 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,33 +4,32 @@
 
 pkgbase=liblastfm
 pkgname=(liblastfm-qt5)
-pkgver=1.0.9
-pkgrel=5
+pkgver=1.1.0
+pkgrel=1
 pkgdesc="A Qt C++ library for the Last.fm webservices"
 arch=('x86_64')
 url='https://github.com/lastfm/liblastfm/'
 license=('GPL3')
 depends=('qt5-base' 'fftw' 'libsamplerate')
 makedepends=('cmake')
-source=(${pkgbase}-${pkgver}.tar.gz::"https://github.com/lastfm/${pkgbase}/tarball/${pkgver}" liblastfm-qt5.11.patch
-        liblastfm-include-suffix.patch::"https://github.com/lastfm/liblastfm/commit/480e2ec6.patch")
-sha1sums=('cd8c6f160529dbf9e0566973a8f37130c83a78c0'
-          '40d84032eaeae32072715732b9fe67295483ffad'
-          '8c36936b2259771db4cf6ac55cd2201800a4623e')
+source=(https://github.com/lastfm/${pkgbase}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz
+        liblastfm-qt5.11.patch)
+sha1sums=('a84f00a42b3bb8c0f8845ce29c776d609a3b44ac'
+          '40d84032eaeae32072715732b9fe67295483ffad')
 
 prepare() {
-  cd lastfm-${pkgbase}-*
+  cd ${pkgbase}-${pkgver}
   patch -p1 -i ../liblastfm-qt5.11.patch # Fix build with Qt 5.11
-  patch -p1 -i ../liblastfm-include-suffix.patch # add suffix to Qt5 include dir
 }
 
 build() {
   mkdir build
   cd build
-  cmake ../lastfm-${pkgbase}-* \
+  cmake ../${pkgbase}-${pkgver} \
     -DCMAKE_BUILD_TYPE=Release \
     -DCMAKE_INSTALL_PREFIX=/usr \
     -DCMAKE_INSTALL_LIBDIR=/usr/lib \
+    -DCMAKE_CXX_STANDARD=14 \
     -DBUILD_TESTS=OFF
   make
 }
@@ -39,4 +38,3 @@ package_liblastfm-qt5() {
   cd build
   make DESTDIR="${pkgdir}" install
 } 
-