# Maintainer: Luis Henrique # Former Maintainer: R S Ananda Murthy # Mandatory pkgname=arpack pkgver=2.1 pkgver_major=2 pkgrel=1lm source=("http://www.caam.rice.edu/software/ARPACK/SRC/arpack96.tar.gz" "http://www.caam.rice.edu/software/ARPACK/SRC/patch.tar.gz" "arpack96-bugfix.patch") # Optional docs=("README" "debug.doc" "ex-complex.doc" "ex-nonsym.doc" "ex-sym.doc" "stat.doc") url="http://www.caam.rice.edu/software/ARPACK/" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "arpack (Arnoldi Package)" "ARPACK is a collection of Fortran77 subroutines designed to solve" "large scale eigenvalue problems." ) build() { # Apply all bugfix patches patch -p0 < arpack96-bugfix.patch cd $startdir/src/ARPACK mkdir static shared # Build shared library cd shared for dir in ../SRC ../UTIL; do make -f $dir/Makefile VPATH=$dir srcdir=$dir \ FC=gfortran FFLAGS="-std=legacy $SLKCFLAGS -fPIC" \ single double complex complex16 done gcc -shared -lblas -llapack -Wl,-soname,libarpack.so.$pkgver_major -o libarpack.so.$pkgver *.o cd .. # Build static library cd static for dir in ../SRC ../UTIL; do make -f $dir/Makefile VPATH=$dir srcdir=$dir \ FC=gfortran FFLAGS="-std=legacy $SLKCFLAGS" \ single double complex complex16 done ar rv libarpack.a *.o ranlib libarpack.a cd .. # Manual install mkdir -p $startdir/pkg/usr/lib${LIBDIRSUFFIX} install -p -m644 static/libarpack.a $startdir/pkg/usr/lib${LIBDIRSUFFIX} install -p -m755 shared/libarpack.so.$pkgver $startdir/pkg/usr/lib${LIBDIRSUFFIX} # Make symbolic links ( cd $startdir/pkg/usr/lib${LIBDIRSUFFIX} ln -s libarpack.so.$pkgver libarpack.so.$pkgver_major ln -s libarpack.so.$pkgver_major libarpack.so ) }