blob: 231d7dc1676eb53d8973e14d08beb53ea833ad19 (
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
|
# Maintainer: Jaron Kent-Dobias <jaron@kent-dobias.com>
pkgname=clad
pkgver=1.8
pkgrel=1
pkgdesc='Enables automatic differentiation for C++'
arch=(x86_64)
license=(LGPL)
url='https://github.com/vgvassilev/clad'
depends=(llvm clang)
makedepends=(cmake python git)
optdepends=()
source=("git+https://github.com/vgvassilev/clad#tag=v${pkgver}")
sha256sums=('405e70bac23685ac6ea66b0a835054f4b9d76cc7f7a2485e07cd851682dbba61')
build() {
cmake -B build -S "$pkgname" \
-DCMAKE_BUILD_TYPE='None' \
-DCMAKE_INSTALL_PREFIX='/usr' \
-DLLVM_DIR=/usr/lib/cmake/llvm \
-DClang_DIR=/usr/lib/cmake/clang \
-DLLVM_EXTERNAL_LIT=/usr/bin/lit \
-Wno-dev
cmake --build build
}
check() {
cd "$srcdir"/build
CLADLIB="$srcdir"/build/lib/clad.so make check-clad
}
package() {
DESTDIR="$pkgdir" cmake --install build
}
|