summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 38876297fbbbb2a8f81e7c3a54d92b7704021fba (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
# Maintainer:  Andrew O'Neill <andrew at haunted dot sh>
# Contributor: Kristof Szalay <krszalay at gmail dot com>

pkgname=adol-c
_pkgname=ADOL-C
pkgver=2.7.2
pkgrel=2
pkgdesc='Automatic Differentiation of Algorithms written in C/C++'
arch=('x86_64')
url="https://github.com/coin-or/${_pkgname}"
license=('EPL-1.0 OR GPL-2.0-or-later')
depends=('boost' 'colpack')
source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/releases/${pkgver}.tar.gz")
sha256sums=('701e0856baae91b98397960d5e0a87a549988de9d4002d0e9a56fa08f5455f6e')

prepare() {
  cd "${_pkgname}-releases-${pkgver}"

  sed -i 's/test x\$python_found = xyes/false/' configure
}

build() {
  cd "${_pkgname}-releases-${pkgver}"

  ./configure --prefix=/usr --libdir=/usr/lib
  make
}

package() {
  cd "${_pkgname}-releases-${pkgver}"

  make DESTDIR="$pkgdir/" install
}