summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 067f6ee9d3e35b6f17517c92d18281217be7a8ff (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: Maxime Arthaud <maxime@arthaud.me>

pkgname=ikos
pkgver=3.2
pkgrel=1
pkgdesc='Static analyzer for C and C++ developed by NASA'
arch=('i686' 'x86_64' 'armv7h' 'armv6h' 'aarch64')
url='https://github.com/nasa-sw-vnv/ikos'
license=('custom:NOSA 1.3')
depends=('gmp'
         'boost-libs'
         'python'
         'python-pygments'
         'sqlite'
         'intel-tbb'
         'llvm14'
         'llvm14-libs'
         'clang14'
	 'ppl'
	 'apron')
makedepends=('cmake'
             'boost'
	     'llvm14')
source=("$pkgname-$pkgver.tar.gz::https://github.com/NASA-SW-VnV/${pkgname}/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('11ab520043523a048f8756d68bd3f6a761870d4ec1a9f240eda8f3b1a11f7aa1')

build() {
  cd "$srcdir/ikos-$pkgver"
  [[ -d build ]] && rm -rf build
  mkdir build && cd build

  cd "$srcdir/ikos-$pkgver/build"
  cmake \
    -DCMAKE_BUILD_TYPE="Release" \
    -DCMAKE_INSTALL_PREFIX="/usr" \
    -DLLVM_CONFIG_EXECUTABLE="/usr/bin/llvm-config-14" \
    ..
  make
}

check() {
  cd "$srcdir/ikos-$pkgver/build"
  make check
}

package() {
  cd "$srcdir/ikos-$pkgver/build"
  make DESTDIR="$pkgdir" install
  install -Dm644 "$srcdir/ikos-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/ikos/LICENSE"
}