contrib/clementine/Pkgfile

34 lines
1.0 KiB
Plaintext
Raw Normal View History

2013-11-02 00:44:14 +01:00
# Description: A music player and library organizer.
# URL: http://www.clementine-player.org/
# Packager: Chris Farrell, timcowchip at gmail dot com
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: boost crypto++ glew gst-plugins-bad gst-plugins-good gst-plugins-ugly protobuf qt5
2013-11-02 00:44:14 +01:00
name=clementine
version=1.3.1.r771.75f18dab2
release=1
source=(https://github.com/clementine-player/Clementine/archive/75f18dab23f0842713a4200a7e362efd51b12e31.zip
clementine-gcc6.patch)
2013-11-02 00:44:14 +01:00
build() {
cd Clementine-75f18dab23f0842713a4200a7e362efd51b12e31
2014-10-28 12:48:00 +01:00
2017-06-19 15:12:38 +02:00
patch -p1 -i $SRC/clementine-gcc6.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' \
-DCMAKE_CXX_FLAGS="$CXXFLAGS -Wno-catch-value"
2014-10-28 12:48:00 +01:00
2013-11-02 00:44:14 +01:00
make
make DESTDIR=$PKG install
}