mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-04 01:17:16 +08:00
40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
pkgname=cantata
|
|
pkgver=2.0.1
|
|
pkgrel=2
|
|
pkgdesc='Qt5 client for the music player daemon (MPD)'
|
|
arch=('x86_64')
|
|
url='https://github.com/CDrummond/cantata'
|
|
license=('GPL')
|
|
depends=('qt5-svg' 'qt5-multimedia' 'libmtp' 'libcddb' 'libmusicbrainz5' 'mpg123' 'taglib-extras' 'cdparanoia' 'media-player-info' 'udisks2')
|
|
optdepends=('perl-uri: dynamic playlist' 'mpd: playback' 'ffmpeg: ReplayGain support')
|
|
makedepends=('cmake' 'qt5-tools' 'ffmpeg')
|
|
install=$pkgname.install
|
|
source=("https://github.com/CDrummond/cantata/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2" "fix.patch")
|
|
sha1sums=('90a80b412a21aed72d1b7cc578f0c2ffa62c243c'
|
|
'dcefb0e9320b6b73c4df37baa8378b0913be2738')
|
|
|
|
prepare() {
|
|
mkdir -p build
|
|
cd $pkgname-$pkgver
|
|
patch -Np1 -i ../fix.patch
|
|
}
|
|
|
|
build() {
|
|
cd build
|
|
|
|
PATH=/usr/lib/qt5/bin:$PATH
|
|
cmake ../$pkgname-$pkgver \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DENABLE_HTTP_STREAM_PLAYBACK=ON \
|
|
-DENABLE_KDE=OFF -DENABLE_QT5=ON \
|
|
-DENABLE_LIBVLC=OFF \
|
|
-DENABLE_UDISKS2=ON
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd build
|
|
make DESTDIR="$pkgdir" install
|
|
}
|