From d8be0e63ea4522837affe552b3b62267535e0bfc Mon Sep 17 00:00:00 2001 From: Duncaen Date: Mon, 10 Oct 2022 20:08:21 +0200 Subject: [PATCH] liblastfm-qt5: fix build with gcc>=11 --- srcpkgs/liblastfm-qt5/template | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/srcpkgs/liblastfm-qt5/template b/srcpkgs/liblastfm-qt5/template index abb7eacc8d4..b0d56aed64a 100644 --- a/srcpkgs/liblastfm-qt5/template +++ b/srcpkgs/liblastfm-qt5/template @@ -2,15 +2,16 @@ pkgname=liblastfm-qt5 version=1.1.0 revision=1 -wrksrc=${pkgname%-*}-${version} +wrksrc="liblastfm-${version}" build_style=cmake +configure_args="-DCMAKE_CXX_STANDARD=14" makedepends="qt5-devel qt5-plugin-pgsql qt5-plugin-mysql qt5-plugin-sqlite qt5-plugin-odbc qt5-plugin-tds libsamplerate-devel fftw-devel" -short_desc="A Qt5 C++ library for the Last.fm webservices" +short_desc="Qt5 C++ library for the Last.fm webservices" maintainer="Duncaen " license="GPL-3.0-or-later" homepage="https://github.com/lastfm/liblastfm" -distfiles="https://github.com/lastfm/${pkgname%-*}/archive/${version}.tar.gz" +distfiles="https://github.com/lastfm/liblastfm/archive/${version}.tar.gz" checksum=f61f0daa384e081a8f2bd2f7a2148babff22696e5b72ecdac86940a10100b1c8 if [ -n "$CROSS_BUILD" ]; then @@ -18,7 +19,7 @@ if [ -n "$CROSS_BUILD" ]; then fi liblastfm-qt5-devel_package() { - depends="liblastfm-qt5>=${version}_${revision} $makedepends" + depends="${sourcepkg}>=${version}_${revision} $makedepends" short_desc+=" - development files" provides="liblastfm-devel-${version}_${revision}" replaces="liblastfm-devel>=0"