Skip to content

Commit

Permalink
spotify-qt-git: update qt version to 6 & tweak cmake commands
Browse files Browse the repository at this point in the history
  • Loading branch information
Integral-Tech committed Nov 3, 2024
1 parent eb5402f commit a22103b
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions archlinuxcn/spotify-qt-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Maintainer: Integral <integral@member.fsf.org>
# Contributor: kraxarn <kraxie@protonmail.com>

pkgname=spotify-qt-git
_pkgname=${pkgname%-git}
pkgver=3.11.r74.g5d74fbc7
Expand All @@ -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"
Expand All @@ -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
}

0 comments on commit a22103b

Please sign in to comment.