diff options
author | Andrea Zanoni | 2023-04-05 11:33:24 +0200 |
---|---|---|
committer | Andrea Zanoni | 2023-04-05 11:33:24 +0200 |
commit | 8a24291cbd01a1f2963f9416aff74ec493ec3830 (patch) | |
tree | b07b71ff4d8d76108a890d0eb48bded2103438d6 | |
download | aur-8a24291cbd01a1f2963f9416aff74ec493ec3830.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 21 | ||||
-rw-r--r-- | PKGBUILD | 50 |
2 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..cf3c5420c2e0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,21 @@ +pkgbase = mbdyn-git + pkgdesc = The first and possibly the only free* general purpose Multibody Dynamics analysis software + pkgver = r7415.ebbccab59 + pkgrel = 1 + url = www.mbdyn.org + arch = any + license = GPLv2 + makedepends = git + makedepends = autoconf + makedepends = automake + makedepends = gcc-fortran + makedepends = libtool + depends = openblas-lapack + depends = suitesparse + depends = netcdf + depends = netcdf-cxx + optdepends = ginac: symbolic elements support + source = mbdyn-git::git+https://public.gitlab.polimi.it/DAER/mbdyn.git + sha256sums = SKIP + +pkgname = mbdyn-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..5754da74c71e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: Andrea Zanoni <andrea dot zanoni at polimi dot it> +pkgname=mbdyn-git +pkgver=r7415.ebbccab59 +pkgrel=1 +pkgdesc="The first *free* general purpose Multibody Dynamics analysis software" +arch=('any') +url='www.mbdyn.org' +license=('GPLv2') +depends=(openblas-lapack suitesparse netcdf netcdf-cxx) +makedepends=(git autoconf automake gcc-fortran libtool) +optdepends=('ginac: symbolic elements support') +source=("${pkgname}::git+https://public.gitlab.polimi.it/DAER/mbdyn.git") +sha256sums=('SKIP') + +# Note: edit the list of modules to suit your needs +_modules="hfelem" + +pkgver() { + cd ${pkgname} + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +OPTIONS="--prefix=/usr --with-y12=no --with-lapack=yes --enable-python --enable-Werror=no --with-superlu=no" +prepare() { + cd ${srcdir}/${pkgname} + git checkout develop + sh bootstrap.sh + CXXFLAGS="-O3 -march=native" \ + FCFLAGS="-O3" \ + CFLAGS="-O3 -march=native" \ + ./configure \ + --with-module="${_modules}" \ + --prefix=/usr \ + --with-y12=no \ + --with-lapack=yes \ + --enable-python \ + --enable-Werror=no \ + --with-superlu=no +} + +build() { + cd ${srcdir}/${pkgname} + make -j$(nproc) +} + +package() { + cd ${srcdir}/${pkgname} + # make install + echo "Made it to install..." +} |