1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Michael Schubert <mschu.dev at gmail>
7 pkgdesc='Fast symbolic manipulation library, written in C++'
8 url='http://sympy.org/'
11 depends=(llvm-libs arb libmpc gmp-ecm primesieve gperftools)
12 makedepends=(cmake boost llvm cereal)
13 source=(https://github.com/symengine/symengine/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz
15 sha256sums=('9c007c99e9633f5549a55fa7a66ebcbcf9e04092eb55f7bb781c22b9cf0570c4'
16 'ef05a806139b35e0336f00cb6960ef6cf483f11b0041e436a99ab1f46bdcb11c')
19 patch -d $pkgname-$pkgver -p1 < llvm-shared.patch # Use shared LLVM (Gentoo)
23 cmake -B build -S $pkgname-$pkgver \
24 -DCMAKE_INSTALL_PREFIX=/usr \
25 -DBUILD_SHARED_LIBS=ON \
28 -DWITH_SYMENGINE_THREAD_SAFE=ON \
34 -DWITH_PRIMESIEVE=ON \
37 -DWITH_SYSTEM_CEREAL=ON
42 cmake --build build --target test
46 DESTDIR="$pkgdir" cmake --install build
47 install -Dm644 $pkgname-$pkgver/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname