forked from ports/contrib
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
# Description: A music player and library organizer.
|
|
# URL: http://www.clementine-player.org/
|
|
# Packager: Chris Farrell, timcowchip at gmail dot com
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: boost chromaprint crypto++ glew gst-plugins-bad gst-plugins-good gst-plugins-ugly libechonest protobuf qca glu
|
|
|
|
name=clementine
|
|
version=1.3.1
|
|
release=2
|
|
source=(https://github.com/clementine-player/Clementine/archive/$version.tar.gz
|
|
clementine-gcc6.patch
|
|
clementine-1.3.1-chromaprint-1.4.0.patch)
|
|
|
|
build() {
|
|
cd Clementine-$version
|
|
|
|
patch -p1 -i $SRC/clementine-gcc6.patch
|
|
patch -p1 -i $SRC/clementine-1.3.1-chromaprint-1.4.0.patch
|
|
|
|
install -d build
|
|
cd build
|
|
|
|
# make sure we do not have ccache masquerade directory in PATH
|
|
# as cmake calls ccache directly, this avoids recursvely
|
|
# calling ccache and CCACHE_PREFIX
|
|
PATH=$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')
|
|
|
|
cmake .. \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_BUILD_TYPE='Release'
|
|
|
|
make
|
|
make DESTDIR=$PKG install
|
|
}
|