cruxports/arpack/Pkgfile

29 lines
757 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
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
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -fPIC" \
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -fPIC" \
-DCMAKE_Fortran_FLAGS="$CFLAGS -fPIC" \
-DBUILD_SHARED_LIBS=on \
-DEXAMPLES=off \
-DMPI=off \
../$name-ng-$version
cmake --build .
make DESTDIR=$PKG install
}