contrib/clementine/Pkgfile
2021-03-06 20:13:24 +11:00

28 lines
967 B
Plaintext

# Description: A music player and library organizer.
# URL: https://www.clementine-player.org/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: boost crypto++ glew gst-plugins-bad gst-plugins-good gst-plugins-ugly protobuf qt5
name=clementine
version=1.4.0rc1-484
release=1
source=(https://github.com/clementine-player/Clementine/archive/$version-g2d8a56b7c/$name-$version.tar.gz
clementine-gcc6.patch)
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 -S Clementine-$version-g2d8a56b7c -B build -G Ninja \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D CMAKE_CXX_FLAGS="$CXXFLAGS -Wno-catch-value" \
-Wno-dev
cmake --build build
DESTDIR=$PKG cmake --install build
}