summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 76ff49be8e5d86389a15a9643392656951b085e5 (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
# Maintainer: Sascha Wunderlich <archlinux at saschawunderlich dot de>
pkgname=carl-git
pkgver=17.06.r180.g477d100e
pkgrel=1
pkgdesc="CArL - the Computer ARithmetic and Logic library."
arch=(i686 x86_64)
url="https://smtrat.github.io/carl"
license=('MIT')
groups=()
conflicts=('carl')
provides=('carl')
depends=(boost eigen ginac)
makedepends=(git cmake)
source=("$pkgname::git+https://github.com/smtrat/carl.git")
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 \
	..

  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
}