From bae0638aa756a582ae5e30c74475b46f7ec793cd Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Fri, 26 Jul 2024 23:47:02 -0500 Subject: user/clazy: Specify the LLVM root path The LLVM version is now a variable that can be easily changed, as well. Closes: #1225 --- user/clazy/APKBUILD | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'user') diff --git a/user/clazy/APKBUILD b/user/clazy/APKBUILD index d8e20a742..114cd4556 100644 --- a/user/clazy/APKBUILD +++ b/user/clazy/APKBUILD @@ -2,6 +2,7 @@ # Maintainer: A. Wilcox pkgname=clazy pkgver=1.11 +_llvmver=14 pkgrel=0 pkgdesc="Clang compiler plugin to warn about Qt best practices" url="https://kde.org/applications/development/org.kde.clazy" @@ -9,7 +10,7 @@ arch="all" license="LGPL-2.1+" options="!check" # need 'clang-tools-extra' depends="" -makedepends="cmake clang-dev llvm14-dev" +makedepends="cmake clang-dev llvm$_llvmver-dev" subpackages="$pkgname-doc" source="https://download.kde.org/stable/clazy/$pkgver/src/clazy-$pkgver.tar.xz fix-link-fs-lib.patch @@ -26,6 +27,7 @@ build() { -DCMAKE_BUILD_TYPE=RelWithDebugInfo \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ + -DLLVM_ROOT="/usr/lib/llvm$_llvmver" \ ${CMAKE_CROSSOPTS} \ . make -- cgit v1.2.3-70-g09d2