contrib/clementine/Pkgfile

32 lines
1.1 KiB
Plaintext
Raw Normal View History

2013-11-02 00:44:14 +01:00
# Description: A music player and library organizer.
2020-06-01 17:45:48 +02:00
# URL: https://www.clementine-player.org/
2023-07-30 15:59:46 +02:00
# Maintainer: unmaintained
2022-08-20 20:46:38 +02:00
# Depends on: boost crypto++ glew glu gst-plugins-bad gst-plugins-good gst-plugins-ugly protobuf qt5
2013-11-02 00:44:14 +01:00
name=clementine
2022-08-20 20:46:38 +02:00
version=1.4.0rc2
release=1
2022-08-20 20:46:38 +02:00
source=(https://github.com/clementine-player/Clementine/archive/$version/$name-$version.tar.gz)
2013-11-02 00:44:14 +01:00
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/:*$//')
# -Wl,--as-needed breaks linking
2022-08-20 20:46:38 +02:00
#LDFLAGS=$(echo ${LDFLAGS} | awk -v RS=' ' -v ORS=' ' '/-Wl,--as-needed/ {next} {print}')
2022-08-20 20:46:38 +02:00
sed -e 's|CRYPTOPP cryptopp|CRYPTOPP libcryptopp|' -i Clementine-$version/CMakeLists.txt
cmake -S Clementine-$version -B build -G Ninja \
2020-11-08 11:12:28 +01:00
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
2020-12-07 00:49:16 +01:00
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
-D CMAKE_CXX_FLAGS="$CXXFLAGS -Wno-catch-value" \
2020-11-07 17:05:17 +01:00
-Wno-dev
2014-10-28 12:48:00 +01:00
2020-04-18 15:47:36 +02:00
cmake --build build
2020-07-08 15:01:36 +02:00
DESTDIR=$PKG cmake --install build
2013-11-02 00:44:14 +01:00
}