update cantata 2.0.0

This commit is contained in:
Weng Xuetian 2016-01-25 01:47:43 +01:00
parent f69deb5680
commit 2418dca941
2 changed files with 39 additions and 22 deletions

View File

@ -1,28 +1,33 @@
pkgname=cantata
pkgver=1.5.2
pkgver=2.0.0
pkgrel=1
pkgdesc="KDE client for MPD (Music Player Daemon)"
arch=('x86_64')
url="http://kde-apps.org/content/show.php/Cantata?content=147733"
license=('GPL')
screenshot='http://kde-apps.org/CONTENT/content-pre1/147733-1.png'
makedepends=('cmake' 'automoc4' 'libbluray' 'mpg123' 'ffmpeg' 'libcddb')
depends=('kdelibs' 'qjson' 'taglib' 'libmtp' 'taglib-extras')
optdepends=('ffmpeg: ReplayGain detection'
'mpg123: ReplayGain detection'
'perl-uri: Dynamic playlist support'
'cdparanoia: Read/rip Audio CDs')
source=("https://drive.google.com/uc?export=download&id=0Bzghs6gQWi60LV9rM3RMQk85Z1E")
sha1sums=('dd6f403746c0e0b2be66883b6c0990622399b02b')
pkgdesc='Qt5 client for the music player daemon (MPD)'
arch=(x86_64)
url='https://code.google.com/p/cantata/'
license=(GPL)
depends=(qt5-svg libmtp libcddb libmusicbrainz5 mpg123 vlc 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")
md5sums=('dc7a65145692c5b2cac4c2c8a7c767c5')
prepare() {
mkdir -p build
}
build() {
cd $pkgname-$pkgver
mkdir -p build && cd build
cmake -DCMAKE_INSTALL_PREFIX=/usr .. -DENABLE_HTTP_STREAM_PLAYBACK=ON -DENABLE_REMOTE_DEVICES=ON -DENABLE_KDE=On
make
}
cd build
cmake ../$pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DENABLE_HTTP_STREAM_PLAYBACK=ON \
-DENABLE_KDE=OFF -DENABLE_QT5=ON \
-DENABLE_UDISKS2=ON
make
}
package() {
cd $pkgname-$pkgver/build
make DESTDIR=$pkgdir install
}
cd build
make DESTDIR="$pkgdir" install
}

12
cantata/cantata.install Normal file
View File

@ -0,0 +1,12 @@
post_install() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
update-desktop-database -q
}
post_upgrade() {
post_install
}
post_remove() {
post_install
}