blob: b5e31239a80702dca2f451ddeb0dc7287dcb939b (
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
|
# Maintainer: Bogdan Burlacu <bogdan.burlacu@pm.me>
pkgname=gaol-git
pkgver=r6.6e6cd9a
pkgrel=1
pkgdesc="GAOL (not Just Another Interval Arithmetic Library) is a C++ Interval Arithmetic Library that offers all operators required by interval constraint solvers."
arch=('x86_64')
url="https://gitlab.univ-nantes.fr/goualard-f/gaol"
license=('GPL')
depends=(crlibm-git)
makedepends=(git cppunit) # 'bzr', 'git', 'mercurial' or 'subversion'
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://gitlab.univ-nantes.fr/goualard-f/gaol.git')
noextract=()
md5sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
# Git, no tags available
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd "$srcdir/${pkgname%-git}"
sed 's/throw\s*(.*)/throw()/g' -i gaol/gaol_allocator.h
sed 's/throw\s*(.*)/throw()/g' -i gaol/gaol_interval.h
sed 's/throw\s*(.*)/throw()/g' -i gaol/gaol_interval2f.h
sed 's/throw\s*(.*)/throw()/g' -i gaol/gaol_interval2f.cpp
sed 's/throw\s*(.*)/throw()/g' -i gaol/gaol_interval.cpp
sed 's/throw\s*(.*)/throw()/g' -i gaol/gaol_interval_sse.cpp
}
build() {
cd "$srcdir/${pkgname%-git}"
./configure --prefix=/usr --with-mathlib=crlibm
make
}
check() {
cd "$srcdir/${pkgname%-git}"
make -k check
}
package() {
cd "$srcdir/${pkgname%-git}"
make prefix=$pkgdir/usr install
}
|