summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 32822972fb08522955da1bf601c7911c9cac27e1 (plain)
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
# Maintainer: Tobias Markus < tobias AT miglix DOT eu >

pkgname=clang-build-analyzer
pkgver=1.5.0
pkgrel=1
pkgdesc="Clang build analysis tool using -ftime-trace"
arch=(x86_64)
url="https://github.com/aras-p/ClangBuildAnalyzer"
license=('Unlicense')
makedepends=('cmake')
source=("$pkgname-$pkgver.tar.gz::https://github.com/aras-p/ClangBuildAnalyzer/archive/refs/tags/v${pkgver}.tar.gz")
md5sums=('99fae00c31943a0396b8446412bf315b')

build() {
    cmake -B build \
        -S "ClangBuildAnalyzer-$pkgver" \
        -DCMAKE_BUILD_TYPE='None' \
        -DCMAKE_INSTALL_PREFIX='/usr' \
        -Wno-dev
    make -C build
}

package() {
	cd "$srcdir/build"

    install -Dt "$pkgdir/usr/bin" ClangBuildAnalyzer
}