blob: af84d4b03a34955091da9ba3b5f16991a57d2daa (
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
49
|
# Maintainer: Guilhem Saurel <guilhem.saurel@laas.fr>
# Contributor: Andrew Sun <adsun701 at gmail dot com>
# Contributor: Benjamin Chretien <chretien dot b +aur at gmail dot com>
pkgname=casadi
pkgver=3.6.7
pkgrel=1
pkgdesc="Symbolic framework for automatic differentiation and numeric optimization"
arch=('i686' 'x86_64')
url="https://github.com/${pkgname}/${pkgname}"
license=('LGPL-3.0-only')
depends=('python' 'gcc-fortran' 'lapack' 'tinyxml' 'tinyxml2' 'swig' 'ipython'
'python-numpy' 'python-scipy' 'python-matplotlib' 'coin-or-ipopt' 'dsdp'
'osqp' 'proxsuite' 'coin-or-qpoases')
makedepends=('cmake' 'eigen' 'simde' 'python-setuptools')
source=("${pkgname}-${pkgver}.tar.gz"::"${url}/archive/${pkgver}.tar.gz")
sha256sums=('47602bab2aa187bfa8280cc4fa7d68ee19abbbdfeb90991e9eb3dd88465fd18b')
build() {
cmake -B "build-$pkgver" -S "$pkgbase-$pkgver" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DFORTRAN_REQUIRED=ON \
-DWITH_PYTHON=ON \
-DWITH_PYTHON3=ON \
-DINSTALL_INTERNAL_HEADERS=ON \
-DENABLE_EXPORT_ALL=ON \
-DWITH_OPENMP=ON \
-DWITH_THREAD=ON \
-DWITH_BUILD_REQUIRED=OFF \
-DWITH_SUNDIALS=OFF \
-DWITH_OSQP=ON \
-DWITH_PROXQP=ON \
-DWITH_BUILD_TINYXML=OFF \
-DWITH_QPOASES=ON \
-DWITH_LAPACK=ON \
-DWITH_BUILD_LAPACK=OFF \
-DWITH_IPOPT=ON \
-DWITH_TINYXML=ON \
-DWITH_BUILD_TINYXML=OFF \
-DWITH_DSDP=ON \
-DWITH_BUILD_DSDP=OFF \
-Wno-dev
cmake --build "build-$pkgver"
}
package() {
DESTDIR="$pkgdir/" cmake --install "build-$pkgver"
install -Dm644 "$pkgbase-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|