aboutsummaryrefslogtreecommitdiffstats
path: root/community/clazy/APKBUILD
blob: 1acb18175589dbf48f2061b832ad5f3aab4e4fb1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer: André Klitzing <aklitzing@gmail.com>
# Contributor: André Klitzing <aklitzing@gmail.com>
pkgname=clazy
pkgver=1.6
pkgrel=0
pkgdesc="Qt oriented code checker based on clang framework"
url="https://github.com/KDE/clazy"
arch="all"
license="LGPL-2.0-only"
makedepends="llvm-dev clang-dev cmake"
options="!check" # cannot run tests without installation
subpackages="$pkgname-doc"
source="https://download.kde.org/stable/clazy/$pkgver/src/clazy-$pkgver.tar.xz
	clazy-llvm-10.patch::https://cgit.kde.org/clazy.git/patch/?id=df41bd29
	clazy-clang-cpp.patch::https://cgit.kde.org/clazy.git/patch/CMakeLists.txt?id=0e295e5a"

build() {
	cmake -B build .\
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCLANG_CLANG-CPP_LIB=ON
	make -C build
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

sha512sums="dc7cb9590bbc40a2ac51abe305b6520ebc1ff7128ff21b4f6111d18f14eb8c2ab66d907636a18c7508143b708e70ba69f9d6fad88ffce12dec981a9bdd0edcc0  clazy-1.6.tar.xz
6f5ef3e745159da352e867be1c3ffecbf143c3763e08dfccb8bd85db1a7676fc84d9577b53d9809d5c29ac3b570278f8e6fa426a11bd38a2706e21b426caa92b  clazy-llvm-10.patch
6485bce51e583851fc3fb5d664cd3f6533e6fb19f251f7216677f0c1c73ee1162896b2556f5b1ca261c65b580e2a1c6a73b2450ab1c92c62a16d60840dd118f7  clazy-clang-cpp.patch"