desktop/clementine/PKGBUILD
2017-03-16 22:06:23 +00:00

45 lines
1.7 KiB
Bash

pkgname=clementine
pkgver=1.3.1
pkgrel=7
pkgdesc="A modern music player and library organiser and a port of Amarok 1.4, with some features rewritten to take advantage of Qt4."
url="http://www.clementine-player.org/"
screenshot="http://images.clementine-player.org/screenshots/clementine-1.0-3.png"
license="GPL"
arch=('x86_64')
install=${pkgname}.install
depends=('gstreamer' 'taglib' 'glew' 'libgpod' 'libmtp' 'libplist' 'liblastfm-qt4'
'hicolor-icon-theme' 'qtwebkit' 'qjson' 'protobuf' 'crypto++'
'libcdio' 'qca' 'qca-ossl' 'chromaprint' 'libmygpo-qt' 'libechonest-qt4')
makedepends=('cmake' 'boost' 'mesa' 'sparsehash')
optdepends=('gst-plugins-base: for more open formats'
'gst-plugins-good: for use with "Good" plugin libraries'
'gst-plugins-bad: for use with "Bad" plugin libraries'
'gst-plugins-ugly: for use with "Ugly" plugin libraries'
'libspotify: add support for Spotify, due to license restriction, please build it
with ccr yourself'
'dropbox: add support for Dropbox')
categories=('multimedia')
source=("https://github.com/clementine-player/Clementine/releases/download/1.3.1/${pkgname}-${pkgver}.tar.xz")
sha1sums=('67f3438d674e075d15859daedfc9f82b638243f7')
prepare() {
cd ${pkgname}-${pkgver}
sed 's,<lastfm/,<lastfm4/,g' -i src/internet/lastfm/* -i src/core/*.cpp
mkdir -p build
}
build() {
cd ${pkgname}-${pkgver}/build
cmake ../ -DLASTFM_INCLUDE_DIRS=/usr/include/lastfm4 \
-DLASTFM1_INCLUDE_DIRS=/usr/include/lastfm4 \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_WERROR=OFF
make
}
package() {
cd ${pkgname}-${pkgver}/build
make install DESTDIR="${pkgdir}"
}