cruxports/octave/Pkgfile

36 lines
1.3 KiB
Plaintext
Raw Normal View History

2022-02-05 15:39:19 -05:00
# Description: high-level programming language for scientific computing
# URL: https://www.gnu.org/software/octave
# Maintainer: John McQuah, jmcquah at disroot dot org
2022-04-26 07:51:12 -04:00
# Depends on: gl2ps gnuplot graphicsmagick qscintilla-qt5 suitesparse
2022-02-05 15:39:19 -05:00
# Nice to have: fltk arpack fftw glpk glu hdf5 qhull qrupdate sundials portaudio libsndfile
name=octave
2022-06-14 15:36:53 -04:00
version=7.1.0
2022-02-05 15:39:19 -05:00
release=1
2022-06-14 15:36:53 -04:00
source=(https://ftpmirror.gnu.org/octave/$name-$version.tar.lz)
2022-02-05 15:39:19 -05:00
build() {
PKGMK_OCTAVE="--prefix=/usr --libexecdir=/usr/lib --enable-shared --disable-static --disable-docs"
prt-get isinst fftw || PKGMK_OCTAVE+=" --without-fftw3 --without-fftw3f"
prt-get isinst glpk || PKGMK_OCTAVE+=" --without-glpk"
prt-get isinst hdf5 || PKGMK_OCTAVE+=" --without-hdf5"
prt-get isinst qhull || PKGMK_OCTAVE+=" --without-qhull"
prt-get isinst qrupdate || PKGMK_OCTAVE+=" --without-qrupdate"
cd $name-$version
./configure $PKGMK_OCTAVE
make
make DESTDIR=$PKG install
2022-02-15 14:46:02 -05:00
# strip junk files
2022-02-05 15:39:19 -05:00
rm -f $PKG/usr/lib/$name/$version/*.la
2022-02-15 14:46:02 -05:00
rm -rf $PKG/usr/share/$name/$version/locale
find $PKG -name CITATION -exec rm -f '{}' +
find $PKG -name NEWS -exec rm -f '{}' +
find $PKG -name COPYING -exec rm -f '{}' +
2022-02-05 15:39:19 -05:00
mkdir -p $PKG/etc/ld.so.conf.d
echo "/usr/lib/$name/$version" > "$PKG/etc/ld.so.conf.d/$name.conf"
}