summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e9dd76a6c65c20c3224da5ca7868787649d9dfd (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
# Maintainer: acxz <akashpatel200 at yahoo dot com>

pkgname=cppadcodegen-git
pkgver=r928.38d4f3b
pkgrel=1
pkgdesc="A C++ Algorithmic Differentiation Package"
url="https://github.com/joaoleal/CppADCodeGen"
arch=('any')
license=('GPL3' 'EPL1')
depends=('cppad')
optdepends=('eigen: required when DAE differentiation index reduction is used',
            'valgrind: memcheck test'
            'clang: only required for JIT compilation'
            'llvm: only required for JIT compilation')
makedepends=('cmake')
provides=('cppadcodegen')
conflicts=('cppadcodegen')
_pkgname=CppADCodeGen
source=("git+https://github.com/joaoleal/CppADCodeGen.git")
sha256sums=('SKIP')

pkgver() {
  cd "$_pkgname"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    mkdir -p "$srcdir/${_pkgname}/build"
    cd "$_pkgname/build"
    cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr ..
    make
}

package() {
    cd "$_pkgname/build"
    make DESTDIR="$pkgdir/" install
}