blob: c1bdf8f72adec21469f64dca666fb5ac952c69a2 (
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
51
|
# Maintainer: Allen Hoffmeyer <allen dot hoffmeyer at gmail dot com>
# (adapted from work by Louis R. Marascio <lrm at fitnr dot com>)
# Contributor: trader <trader9 at gawab dot com>
# Contributor: masutu <masutu dot arch at googlemail dot com>
# Contributor: Guillaume Horel <guillaume.horel@gmail.com>
pkgname=quantlib
_pkgname=QuantLib
pkgver=1.36
pkgrel=1
pkgdesc="A free/open-source library for quantitative finance."
arch=('x86_64')
url="http://quantlib.org"
license=('BSD-3-Clause')
options=(!libtool)
depends=('gcc-libs' 'sh')
makedepends=('make' 'boost')
checkdepends=()
source=("Quantlib-$pkgver.tar.gz::https://github.com/lballabio/QuantLib/releases/download/v$pkgver/QuantLib-$pkgver.tar.gz")
sha256sums=('a0eff3d420cc26c21ab8e55d3fd169448abe631a0fbc9f528a6ac444227824fa')
prepare() {
cd "$_pkgname-$pkgver"/
autoupdate acinclude.m4 configure.ac
autoreconf -if
}
build() {
cd "$_pkgname-$pkgver"
./configure --prefix=/usr \
--enable-intraday \
--enable-openmp \
--disable-static \
--enable-std-classes \
--enable-null-as-functions \
--enable-parallel-unit-test-runner
make
}
package() {
cd "$_pkgname-$pkgver"/
make DESTDIR="$pkgdir/" install
install -D -m644 LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE.TXT"
}
check() {
cd "$_pkgname-$pkgver"
make check
}
# vim:set ts=2 sw=2 et:
|