2013-11-02 10:44:14 +11:00
|
|
|
# Description: A music player and library organizer.
|
2020-06-01 15:45:48 +00:00
|
|
|
# URL: https://www.clementine-player.org/
|
2014-11-10 23:28:07 +11:00
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2019-09-21 00:35:09 +10:00
|
|
|
# Depends on: boost crypto++ glew gst-plugins-bad gst-plugins-good gst-plugins-ugly protobuf qt5
|
2013-11-02 10:44:14 +11:00
|
|
|
|
|
|
|
name=clementine
|
2021-09-24 19:44:43 +10:00
|
|
|
version=1.4.0rc1-733
|
|
|
|
_tag=$version-g679a0ee54
|
2019-09-21 00:35:09 +10:00
|
|
|
release=1
|
2021-09-24 19:44:43 +10:00
|
|
|
source=(https://github.com/clementine-player/Clementine/archive/$_tag/$name-$version.tar.gz
|
2020-04-18 23:47:36 +10:00
|
|
|
clementine-gcc6.patch)
|
2013-11-02 10:44:14 +11:00
|
|
|
|
|
|
|
build() {
|
2017-10-12 21:27:18 +11:00
|
|
|
# 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/:*$//')
|
|
|
|
|
2021-09-24 19:44:43 +10:00
|
|
|
# -Wl,--as-needed breaks linking
|
|
|
|
LDFLAGS=$(echo ${LDFLAGS} | awk -v RS=' ' -v ORS=' ' '/-Wl,--as-needed/ {next} {print}')
|
|
|
|
|
|
|
|
cmake -S Clementine-$_tag -B build -G Ninja \
|
2020-11-08 10:12:28 +00:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
2020-12-06 23:49:16 +00:00
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-D CMAKE_CXX_FLAGS="$CXXFLAGS -Wno-catch-value" \
|
2020-11-07 16:05:17 +00:00
|
|
|
-Wno-dev
|
2014-10-28 22:48:00 +11:00
|
|
|
|
2020-04-18 23:47:36 +10:00
|
|
|
cmake --build build
|
2020-07-08 13:01:36 +00:00
|
|
|
DESTDIR=$PKG cmake --install build
|
2013-11-02 10:44:14 +11:00
|
|
|
}
|