desktop/cantata/PKGBUILD

39 lines
1021 B
Bash
Raw Normal View History

2014-03-27 18:25:38 +08:00
pkgname=cantata
2017-09-30 21:58:02 +08:00
pkgver=2.2.0
2017-07-31 10:09:16 +08:00
pkgrel=1
2016-01-25 08:47:43 +08:00
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')
2017-09-30 21:58:02 +08:00
optdepends=('perl-uri: dynamic playlist'
'mpd: playback'
'ffmpeg: ReplayGain support')
makedepends=('cmake' 'qt5-tools' 'ffmpeg')
2016-01-25 08:47:43 +08:00
install=$pkgname.install
2017-07-31 10:09:16 +08:00
source=("https://github.com/CDrummond/cantata/releases/download/v$pkgver/$pkgname-$pkgver.tar.bz2")
2017-09-30 21:58:02 +08:00
sha1sums=('e4ebd1777700cb3406725d905073dd6ea1382b4d')
2016-01-25 08:47:43 +08:00
prepare() {
mkdir -p build
}
2014-03-27 18:25:38 +08:00
build() {
2016-01-25 08:47:43 +08:00
cd build
2016-01-26 04:20:19 +08:00
PATH=/usr/lib/qt5/bin:$PATH
2016-01-25 08:47:43 +08:00
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 \
2016-01-25 08:47:43 +08:00
-DENABLE_UDISKS2=ON
make
}
2015-03-03 00:10:58 +08:00
2014-03-27 18:25:38 +08:00
package() {
2016-01-25 08:47:43 +08:00
cd build
make DESTDIR="$pkgdir" install
}