diff options
author | Andrea Zanoni | 2023-04-12 16:25:14 +0200 |
---|---|---|
committer | Andrea Zanoni | 2023-04-12 16:25:14 +0200 |
commit | 716ae334b20f967a7d37d79c54e0cf457ae80d7e (patch) | |
tree | 0a47f14ee11a1913102d14bab85b699ae988a25f /PKGBUILD | |
parent | caadf3411a0e4f4e76d60f0091ac8da24e065a82 (diff) | |
download | aur-716ae334b20f967a7d37d79c54e0cf457ae80d7e.tar.gz |
Fixed modules installation and post-remove script
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -11,7 +11,9 @@ makedepends=(git autoconf automake gcc-fortran libtool) optdepends=('ginac: symbolic elements support', 'lapack: eigenanalysis support', 'openblas-lapack: eigenanalysis support, openBLAS version') -source=("${pkgname}::git+https://public.gitlab.polimi.it/DAER/mbdyn.git") +source=("${pkgname}::git+https://public.gitlab.polimi.it/DAER/mbdyn.git" + "mbdyn-utils-aur.patch") +install=mbdyn.install sha256sums=('SKIP') # Note: edit the list of modules to suit your needs @@ -25,6 +27,9 @@ pkgver() { prepare() { cd ${srcdir}/${pkgname} git checkout develop + cd ${srcdir}/${pkgname}/utils + cd ${srcdir}/${pkgname} + patch --forward --strip=1 --input="${srcdir}/mbdyn-utils-aur.patch" sh bootstrap.sh CXXFLAGS="-O3 -march=native" \ FCFLAGS="-O3" \ @@ -37,15 +42,25 @@ prepare() { --enable-python \ --enable-Werror=no \ --with-superlu=no \ - --libexecdir=/usr/lib/${pkgname}/ + --enable-runtime-loading \ + --libexecdir=/usr/lib/${pkgname::} + perl -p -i -e 's#^(\s*libfile=")(\$libdir/)#$1\$DESTDIR$2#' libtool + perl -p -i -e 's#^(\s*if test "X\$destdir" = "X)(\$libdir")#$1\$DESTDIR$2#' libtool + cd ${srcdir}/${pkgname}/modules + perl -p -i -e 's#^(\s*libfile=")(\$libdir/)#$1\$DESTDIR$2#' libtool + perl -p -i -e 's#^(\s*if test "X\$destdir" = "X)(\$libdir")#$1\$DESTDIR$2#' libtool } build() { cd ${srcdir}/${pkgname} - make -j$(nproc) + make -j$(nproc) all } package() { cd ${srcdir}/${pkgname} - make install + mkdir -p "${pkgdir}/usr/lib/${pkgname::-4}" + libtool --finish "${pkgdir}/usr/lib/${pkgname::-4}" + make DESTDIR=${pkgdir} install } +sha256sums=('SKIP' + 'fd547a306e80db6fa298691dc866057554295cc29080e3454903b0526c7ed1c0') |