Skip to content

Instantly share code, notes, and snippets.

@raybsmith
Created June 29, 2016 20:46
Show Gist options
  • Save raybsmith/b0b56164db7b36ad4442b778407a3fd3 to your computer and use it in GitHub Desktop.
Save raybsmith/b0b56164db7b36ad4442b778407a3fd3 to your computer and use it in GitHub Desktop.
DAE Tools PKGBUILD
# Maintainer: Raymond Smith <raymondbarrettsmith at gmail dot com>
_pkgname=daetools
pkgname=python-${_pkgname}-svn
pkgver=617
pkgrel=1
pkgdesc="Tools in Python for solving differential algebraic equations (DAEs)"
arch=('i686' 'x86_64')
url="http://daetools.sourceforge.net"
license=('GPL3')
replaces=('daetools-svn')
provides=('python-daetools')
conflicts=('daetools' 'python2-daetools' 'python-daetools' 'python2-daetools-svn')
depends=('python' 'python-numpy' 'python-scipy' 'python-matplotlib' 'python-pyqt4')
optdepends=('python-pyqt4: use the DAE Tools gui'
'mayavi: 3D plots')
makedepends=('svn' 'python-distribute' 'lapack' 'blas' 'qt4' 'qtcreator' 'gcc-fortran'
'cmake' 'wget' 'freetype2' 'swig' 'libpng12' 'libxext')
install=python-${_pkgname}.install
source=('svn://svn.code.sf.net/p/daetools/code/trunk')
#source=('svn://svn.code.sf.net/p/daetools/code/trunk#revision=566')
sha256sums=('SKIP')
pkgver() {
cd "${SRCDEST}/trunk"
svnversion
}
build() {
# Must use gcc5 for now
export PATH=~/builds/gcc5/bin:${PATH}
cd "${srcdir}/trunk"
sh compile_libraries_linux.sh --with-python-version 3.5 boost ref_blas_lapack umfpack idas superlu superlu_mt bonmin nlopt
sh compile_linux.sh --with-python-version 3.5 dae superlu superlu_mt ipopt bonmin nlopt
# sh compile_libraries_linux.sh --with-python-version 3.5 all
# sh compile_linux.sh --with-python-version 3.5 all
}
package() {
cd "${srcdir}/trunk/daetools-package"
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1
}
# vim:set ts=2 sw=2 et tw=0:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment