blob: ce29afb0ccbfb086f6aea4ec0cf9c9025d8f6b42 (
plain)
1 # Description: A music player and library organizer.
2 # URL: https://www.clementine-player.org/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: boost crypto++ glew gst-plugins-bad gst-plugins-good gst-plugins-ugly protobuf qt5
5
6 name=clementine
7 version=1.4.0rc1-733
8 _tag=$version-g679a0ee54
9 release=1
10 source=(https://github.com/clementine-player/Clementine/archive/$_tag/$name-$version.tar.gz
11 clementine-gcc6.patch)
12
13 build() {
14 # make sure we do not have ccache masquerade directory in PATH
15 # as cmake calls ccache directly, this avoids recursvely
16 # calling ccache and CCACHE_PREFIX
17 PATH=$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')
18
19 # -Wl,--as-needed breaks linking
20 LDFLAGS=$(echo ${LDFLAGS} | awk -v RS=' ' -v ORS=' ' '/-Wl,--as-needed/ {next} {print}')
21
22 cmake -S Clementine-$_tag -B build -G Ninja \
23 -D CMAKE_INSTALL_PREFIX=/usr \
24 -D CMAKE_BUILD_TYPE=Release \
25 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
26 -D CMAKE_CXX_FLAGS="$CXXFLAGS -Wno-catch-value" \
27 -Wno-dev
28
29 cmake --build build
30 DESTDIR=$PKG cmake --install build
31 }
|