Skip to content

Commit

Permalink
updpatch: symengine 0.12.0-1
Browse files Browse the repository at this point in the history
Make patch rot less.
  • Loading branch information
hack3ric authored and felixonmars committed May 26, 2024
1 parent 9a0764b commit 0ea81ee
Showing 1 changed file with 8 additions and 24 deletions.
32 changes: 8 additions & 24 deletions symengine/riscv64.patch
Original file line number Diff line number Diff line change
@@ -1,29 +1,6 @@
--- PKGBUILD
+++ PKGBUILD
@@ -15,13 +15,11 @@ depends=(flint
gmp-ecm
gperftools
libmpc
- llvm-libs
mpfr
primesieve)
makedepends=(boost
cereal
- cmake
- llvm)
+ cmake)
source=(https://github.com/symengine/symengine/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz
llvm-shared.patch
flint-3.patch)
@@ -35,6 +33,7 @@ prepare() {
}

build() {
+ # LLVM's MCJIT doesn't support riscv64
cmake -B build -S $pkgname-$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_SHARED_LIBS=ON \
@@ -43,7 +42,7 @@ build() {
@@ -41,7 +41,7 @@ build() {
-DWITH_SYMENGINE_THREAD_SAFE=ON \
-DWITH_ARB=ON \
-DWITH_ECM=ON \
Expand All @@ -32,3 +9,10 @@
-DWITH_MPFR=ON \
-DWITH_MPC=ON \
-DWITH_PRIMESIEVE=ON \
@@ -59,3 +59,6 @@ package() {
DESTDIR="$pkgdir" cmake --install build
install -Dm644 $pkgname/LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
}
+
+depends=(${depends[@]/llvm-libs})
+makedepends=(${depends[@]/llvm})

0 comments on commit 0ea81ee

Please sign in to comment.