mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-07 12:54:32 +02:00
39 lines
1 KiB
Text
39 lines
1 KiB
Text
# Maintainer: André Klitzing <aklitzing@gmail.com>
|
|
# Contributor: André Klitzing <aklitzing@gmail.com>
|
|
pkgname=clazy
|
|
pkgver=1.14
|
|
pkgrel=0
|
|
pkgdesc="Qt oriented code checker based on clang framework"
|
|
url="https://invent.kde.org/sdk/clazy"
|
|
arch="all"
|
|
license="LGPL-2.0-only"
|
|
_llvmver=18
|
|
depends="clang$_llvmver"
|
|
makedepends="
|
|
clang$_llvmver-dev
|
|
cmake
|
|
llvm$_llvmver-dev
|
|
perl
|
|
samurai
|
|
"
|
|
options="!check" # cannot run tests without installation
|
|
subpackages="$pkgname-doc"
|
|
source="https://download.kde.org/stable/clazy/$pkgver/src/clazy-$pkgver.tar.xz"
|
|
|
|
build() {
|
|
cmake -B build -G Ninja \
|
|
-DLLVM_ROOT=/usr/lib/llvm$_llvmver \
|
|
-DLLVM_CONFIG_EXECUTABLE=/usr/lib/llvm$_llvmver/bin/llvm-config \
|
|
-DCMAKE_BUILD_TYPE=MinSizeRel \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_INSTALL_PREFIX=/usr
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
sha512sums="
|
|
2732e22d56d3121de3639e24759cf47648fc3f5550cf232cbaf97c7efc92e0aacb01c8921326fb15beca3679907aa26a900147b2d3f318792c767e7237604e98 clazy-1.14.tar.xz
|
|
"
|