summaryrefslogtreecommitdiff
path: root/clementine/Pkgfile
blob: 4f86f418b2b607c33c90ac561fd3c06a81b1284a (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 glu gst-plugins-bad gst-plugins-good gst-plugins-ugly protobuf qt5
    5 
    6 name=clementine
    7 version=1.4.0rc2
    8 release=1
    9 source=(https://github.com/clementine-player/Clementine/archive/$version/$name-$version.tar.gz)
   10 
   11 build() {
   12 	# make sure we do not have ccache masquerade directory in PATH
   13 	# as cmake calls ccache directly, this avoids recursvely
   14 	# calling ccache and CCACHE_PREFIX
   15 	PATH=$(echo ${PATH} | awk -v RS=: -v ORS=: '/ccache/ {next} {print}' | sed 's/:*$//')
   16 
   17 	# -Wl,--as-needed breaks linking
   18 	#LDFLAGS=$(echo ${LDFLAGS} | awk -v RS=' ' -v ORS=' ' '/-Wl,--as-needed/ {next} {print}')
   19 
   20 	sed -e 's|CRYPTOPP cryptopp|CRYPTOPP libcryptopp|' -i Clementine-$version/CMakeLists.txt
   21 
   22 	cmake -S Clementine-$version -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 }

Generated by cgit