# Maintainer: Luis Henrique # Mandatory pkgname=octave pkgver=3.4.0 pkgrel=1lm source=("ftp://ftp.octave.org/pub/octave/octave-3.4.0.tar.gz" "octave.desktop" "octave.png") # Optional docs=("BUGS" "COPYING" "ChangeLog*" "INSTALL*" "NEWS*" "PROJECTS" "README*" "ROADMAP" "SENDING-PATCHES") url="http://www.gnu.org/software/octave/" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "GNU Octave (Matlab clone)" "GNU Octave is a high-level language, primarily intended for numerical" "computations. It provides a convenient command line interface for" "solving linear and nonlinear problems numerically, and for performing" "other numerical experiments using a language that is mostly compatible" "with Matlab. It may also be used as a batch-oriented language." ) build() { cd $startdir/src/$pkgname-$pkgver # We do have HDF5, don't we? CPPFLAGS="-I/usr/include/hdf5" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --sysconfdir=/etc \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$pkgname-$pkgver \ --enable-static=no \ --enable-shared=yes \ --with-magick=ImageMagick \ --build=$arch-slackware-linux make || return 1 make DESTDIR=$startdir/pkg install # Fix .desktop file rm $startdir/pkg/usr/share/applications/www.octave.org-octave.desktop cp $startdir/src/octave.desktop $startdir/pkg/usr/share/applications # Copy icon file mkdir -p $startdir/pkg/usr/share/icons/hicolor/128x128/apps cp $startdir/src/octave.png $startdir/pkg/usr/share/icons/hicolor/128x128/apps }