blob: 8faeb8bf5320a85f7c5803aa55a00d547020dba3 (
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: Sascha Wunderlich <archlinux at saschawunderlich dot de>
pkgname=carl-master14-git
pkgver=c++14.18.12.r9.gb9ff46d9
pkgrel=1
pkgdesc="CArL - the Computer ARithmetic and Logic library (master14 branch)"
arch=(i686 x86_64)
url="https://smtrat.github.io/carl"
license=('MIT')
groups=()
conflicts=('carl')
provides=('carl-master14')
depends=(boost eigen ginac)
makedepends=(git cmake)
source=("$pkgname::git+https://github.com/smtrat/carl.git#branch=master14")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
rm -rf build/
mkdir build
cd build
cmake -DUSE_CLN_NUMBERS=ON -DUSE_GINAC=ON -DTHREAD_SAFE=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib \
..
# these are the targets needed for install/fast (we are not building the tests)
make lib_carl
}
# this works, but is not cleaned up before package()
#check() {
# cd "$pkgname"/build
# make
# make test
#}
package() {
cd "$pkgname"/build
make DESTDIR="$pkgdir/" install/fast
}
|