diff options
author | wangjiezhe | 2015-12-14 20:48:11 +0800 |
---|---|---|
committer | wangjiezhe | 2015-12-14 20:48:11 +0800 |
commit | 72a6f4286d4131423951685e46ce6ad0d03bff5b (patch) | |
tree | d61845595dec2255d5788e1f7444c25afd541f3c | |
parent | 57ddc79529848d34a589e31c393687c0fd2e52ec (diff) | |
download | aur-72a6f4286d4131423951685e46ce6ad0d03bff5b.tar.gz |
C++11 ABI rebuild
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 8 | ||||
-rw-r--r-- | octave-octcdf.install | 8 |
3 files changed, 15 insertions, 5 deletions
@@ -1,7 +1,9 @@ +# Generated by mksrcinfo v8 +# Mon Dec 14 12:48:10 UTC 2015 pkgbase = octave-octcdf pkgdesc = A NetCDF interface for octave. This interface is depreciated. Please use the netcdf package instead (possibly in combination with ncarray). pkgver = 1.1.8 - pkgrel = 2 + pkgrel = 4 url = http://octave.sourceforge.net/octcdf/ install = octave-octcdf.install arch = any @@ -9,7 +9,7 @@ _pack=octcdf pkgname=octave-$_pack pkgver=1.1.8 -pkgrel=2 +pkgrel=4 pkgdesc="A NetCDF interface for octave. This interface is depreciated. Please use the netcdf package instead (possibly in combination with ncarray)." arch=(any) url="http://octave.sourceforge.net/$_pack/" @@ -26,6 +26,10 @@ source=("http://downloads.sourceforge.net/octave/$_archive") noextract=("$_archive") md5sums=('981f0937cdf45415f966ea1886ba8136') +_octave_run() { + octave --no-history --no-init-file --no-window-system -q -f --eval "$*" +} + _install_dir() { src=$1 dst=$2 @@ -38,7 +42,7 @@ build() { _archprefix="$srcdir"/install_archprefix mkdir -p "$_prefix" "$_archprefix" cd "$srcdir" - octave -q -f --eval "$(cat <<-EOF + _octave_run "$(cat <<-EOF pkg local_list octave_packages; pkg prefix $_prefix $_archprefix; pkg install -verbose -nodeps $_archive; diff --git a/octave-octcdf.install b/octave-octcdf.install index 2bfaa90b28c5..c6d026917dfa 100644 --- a/octave-octcdf.install +++ b/octave-octcdf.install @@ -1,7 +1,11 @@ _pack=octcdf +_octave_run() { + octave --no-history --no-init-file --no-window-system -q -f --eval "$*" +} + post_install() { - octave -q -f --eval "pkg rebuild -global $_pack" + _octave_run "pkg rebuild -global $_pack" } post_upgrade() { @@ -9,5 +13,5 @@ post_upgrade() { } post_remove() { - octave -q -f --eval "pkg rebuild -global" + _octave_run "pkg rebuild -global" } |