Skip to content

Commit

Permalink
spotify-qt: 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 09df855 commit 765badb
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions archlinuxcn/spotify-qt/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,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=('cmake')
optdepends=(
"librespot: Recommended playback client"
Expand All @@ -17,12 +17,13 @@ source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('91a2097fad58d87b47df7e328ec2fe4254ad463bfeaeb2d8d2e3afc5fbc2d31a')

build() {
cd "${pkgname}-${pkgver}/"
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}-${pkgver}/"
make DESTDIR="${pkgdir}" install
DESTDIR="${pkgdir}" cmake --install build
}

0 comments on commit 765badb

Please sign in to comment.