From a22103b146fe335ec32a52c2bdec0c90378c2648 Mon Sep 17 00:00:00 2001 From: Integral Date: Sun, 3 Nov 2024 13:28:02 +0800 Subject: [PATCH] spotify-qt-git: update qt version to 6 & tweak cmake commands --- archlinuxcn/spotify-qt-git/PKGBUILD | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/archlinuxcn/spotify-qt-git/PKGBUILD b/archlinuxcn/spotify-qt-git/PKGBUILD index d9e40a46aed..c59afb1f3c2 100644 --- a/archlinuxcn/spotify-qt-git/PKGBUILD +++ b/archlinuxcn/spotify-qt-git/PKGBUILD @@ -1,3 +1,6 @@ +# Maintainer: Integral +# Contributor: kraxarn + pkgname=spotify-qt-git _pkgname=${pkgname%-git} pkgver=3.11.r74.g5d74fbc7 @@ -6,7 +9,7 @@ pkgdesc="Lightweight Spotify client using Qt" arch=('i686' 'x86_64' 'armv7h' 'aarch64') url="https://github.com/kraxarn/${_pkgname}" license=("GPL-3.0-or-later") -depends=('qt5-base' 'qt5-svg' 'hicolor-icon-theme') +depends=('qt6-base' 'qt6-svg' 'hicolor-icon-theme') makedepends=('git' 'cmake') optdepends=( "librespot: Recommended playback client" @@ -22,12 +25,14 @@ pkgver() { } build() { - cd "${_pkgname}/" - cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr . - make $MAKEFLAGS + cmake -B build -S "${pkgname}-${pkgver}" \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_INSTALL_PREFIX=/usr + + cmake --build build + } package() { - cd "${_pkgname}/" - make DESTDIR="${pkgdir}" install + DESTDIR="${pkgdir}" cmake --install build }