cruxports/arpack/Pkgfile

30 lines
793 B
Plaintext

# Description: Fortran77 subroutines for solving large scale eigenvalue problems
# URL: https://github.com/opencollab/arpack-ng
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on: lapack
# Optional: openmpi
name=arpack
version=3.9.0
release=1
source=(https://github.com/opencollab/arpack-ng/archive/refs/tags/$version.tar.gz)
renames=($name-$version.tar.gz)
build() {
mkdir build && cd build
prt-get isinst openmpi && ARPACK_MPI="on" || ARPACK_MPI="off"
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -fPIC" \
-DCMAKE_Fortran_FLAGS="$CFLAGS -fPIC" \
-DBUILD_SHARED_LIBS=on \
-DEXAMPLES=off -DMPI=$ARPACK_MPI \
../$name-ng-$version
cmake --build .
make DESTDIR=$PKG install
}