Created
April 26, 2019 08:57
-
-
Save metab0t/7872001d1304745deca3a35ef3ba279a to your computer and use it in GitHub Desktop.
PKGBUILD for casadi
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Andrew Sun <adsun701@gmail.com> | |
# Contributor: Benjamin Chretien <chretien dot b +aur at gmail dot com> | |
pkgname=casadi | |
pkgver=3.4.5 | |
pkgrel=1 | |
pkgdesc="Symbolic framework for automatic differentiation and numeric optimization" | |
arch=('i686' 'x86_64') | |
url="https://github.com/casadi/casadi" | |
license=('GPL3') | |
depends=('python' 'gcc-fortran' 'lapack' 'swig' 'ipython' 'python-numpy' | |
'python-scipy' 'python-matplotlib') | |
makedepends=('cmake') | |
source=("${pkgname}-${pkgver}.tar.gz"::"https://github.com/casadi/${pkgname}/archive/${pkgver}.tar.gz") | |
sha256sums=('2732a90b49084c38c88e0fb59b49635456f6f19712436a64c998133e52fd396f') | |
build() { | |
cd "${srcdir}/${pkgname}-${pkgver}" | |
if [ ! -d "build" ] | |
then | |
mkdir build | |
fi | |
cd build | |
cmake \ | |
-DCMAKE_BUILD_TYPE="Release" \ | |
-DCMAKE_INSTALL_PREFIX="/usr" \ | |
-DWITH_PYTHON=ON \ | |
-DWITH_CLP=ON \ | |
-DWITH_DSDP=ON \ | |
-DWITH_IPOPT=ON \ | |
-DWITH_OPENMP=ON \ | |
-DWITH_QPOASES=ON \ | |
-DWITH_LAPACK=ON \ | |
.. | |
make -j8 | |
} | |
package() { | |
cd "${srcdir}/${pkgname}-${pkgver}/build" | |
make install DESTDIR="${pkgdir}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment