desktop/clementine-qt5/PKGBUILD

50 lines
1.7 KiB
Bash
Raw Normal View History

2015-11-13 00:00:16 +08:00
pkgname=clementine-qt5
2015-11-12 22:05:12 +08:00
_pkgname=Clementine
pkgver=1.2.3.r1748.g57d90ab
_pkgver=57d90ab
2017-01-25 05:42:58 +08:00
pkgrel=4
2015-11-13 00:00:16 +08:00
pkgdesc="Experimental Qt5 version of Clementine, a modern music player and library organiser."
2015-11-12 22:05:12 +08:00
arch=('x86_64')
2015-11-13 00:00:16 +08:00
license=('GPL')
depends=('gstreamer' 'taglib' 'glew' 'desktop-file-utils' 'hicolor-icon-theme'
'qt5-base' 'libechonest' 'protobuf' 'crypto++' 'chromaprint'
'libmygpo-qt5' 'qt5-x11extras' 'libgpod' 'liblastfm' 'sparsehash' 'libcdio' 'libmtp' 'fftw')
makedepends=('git' 'boost' 'cmake' 'mesa' 'qt5-tools' 'gst-libav')
2015-11-13 00:00:16 +08:00
install=clementine.install
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'
2015-11-12 22:05:12 +08:00
'libspotify: add support for Spotify, due to license restriction, please build it
with ccr yourself'
'dropbox: add support for Dropbox')
2015-11-13 00:00:16 +08:00
url="http://www.clementine-player.org/"
2016-02-12 06:18:39 +08:00
source=("git+https://github.com/clementine-player/Clementine.git#commit=${_pkgver}")
2015-11-13 00:00:16 +08:00
sha256sums=('SKIP')
conflicts=('clementine')
2015-11-12 22:05:12 +08:00
2015-11-13 00:00:16 +08:00
pkgver() {
cd ${srcdir}/${_pkgname}
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
2015-11-12 22:05:12 +08:00
}
2015-11-13 00:00:16 +08:00
prepare() {
cd ${srcdir}/${_pkgname}
mkdir -p build
2016-04-17 00:18:53 +08:00
sed 's,<lastfm5,<lastfm,g' -i src/internet/lastfm/* -i src/core/*.cpp
2015-11-13 00:00:16 +08:00
}
2015-11-12 22:05:12 +08:00
build() {
2015-11-13 00:00:16 +08:00
cd ${srcdir}/${_pkgname}/build
2016-04-17 00:18:53 +08:00
cmake ".." -DLASTFM5_INCLUDE_DIRS=/usr/include/lastfm \
-DLASTFM51_INCLUDE_DIRS=/usr/include/lastfm \
-DCMAKE_INSTALL_PREFIX=/usr \
2015-11-13 00:00:16 +08:00
-DCMAKE_BUILD_TYPE=Release \
2016-04-17 00:18:53 +08:00
-DBUILD_WERROR=OFF
2015-11-13 00:00:16 +08:00
make
2015-11-12 22:05:12 +08:00
}
2015-11-13 00:00:16 +08:00
package(){
cd ${srcdir}/${_pkgname}/build
make DESTDIR=${pkgdir} install
2015-11-12 22:05:12 +08:00
}