From f40acc439b448efc73920acea76027db949a22f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Tue, 22 Sep 2020 19:33:06 +0200 Subject: [PATCH] ktorrent: fix build w/ newer ECM The FindTaglibc.cmake of ECM variable names differ from the one which is shipped with ktorrent. Use the former. --- srcpkgs/ktorrent/template | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/srcpkgs/ktorrent/template b/srcpkgs/ktorrent/template index 2c0ce76d9e8..77209881a1c 100644 --- a/srcpkgs/ktorrent/template +++ b/srcpkgs/ktorrent/template @@ -20,3 +20,8 @@ if [ "$CROSS_BUILD" ]; then configure_args+=" -DDESKTOPTOJSON_EXECUTABLE=/usr/bin/desktoptojson" hostmakedepends+=" kdoctools kconfig kcoreaddons" fi + +pre_configure() { + # The ECM FindTaglib.cmake gives different variable names + grep -rl TAGLIB_ | xargs -n1 sed -i -e "s;TAGLIB_;Taglib_;g" +}