diff options
author | wangjiezhe | 2015-10-27 21:26:53 +0800 |
---|---|---|
committer | wangjiezhe | 2015-10-27 21:26:53 +0800 |
commit | 47e81a6e6efa8d3edd5839ee71fc1ea3c3c68554 (patch) | |
tree | b9fab706f436224a6dd7b6158606ba2ebc85538e /PKGBUILD | |
parent | 0c52194960372230f26eb6edecaa78cd36f4f316 (diff) | |
download | aur-47e81a6e6efa8d3edd5839ee71fc1ea3c3c68554.tar.gz |
Use _octave_run
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -10,7 +10,7 @@ _pack=ncarray pkgname=octave-$_pack pkgver=1.0.3 -pkgrel=1 +pkgrel=2 pkgdesc="Access a single or a collection of NetCDF files as a multi-dimensional array" arch=(any) url="http://octave.sourceforge.net/$_pack/" @@ -27,6 +27,10 @@ source=("http://downloads.sourceforge.net/octave/$_archive") noextract=("$_archive") md5sums=('18f563063a589871f3d6aa56a5fb8c49') +_octave_run() { + octave --no-history --no-init-file --no-window-system -q -f --eval "$*" +} + _install_dir() { src=$1 dst=$2 @@ -39,7 +43,7 @@ build() { _archprefix="$srcdir"/install_archprefix mkdir -p "$_prefix" "$_archprefix" cd "$srcdir" - octave-cli -q -f --eval "$(cat <<-EOF + _octave_run "$(cat <<-EOF pkg local_list octave_packages; pkg prefix $_prefix $_archprefix; pkg install -verbose -nodeps $_archive; |