summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-11-30 18:59:37 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-11-30 18:59:37 -0500
commit93b5e7b7fff8205170825e2d41da815960b1cc6d (patch)
treeb00aae4d517b60285571ffe697e86b46939ae3c3
parent61233836b07b962ac71ccaa839bf5f22903999ba (diff)
downloadabslibre-93b5e7b7fff8205170825e2d41da815960b1cc6d.tar.gz
abslibre-93b5e7b7fff8205170825e2d41da815960b1cc6d.tar.bz2
abslibre-93b5e7b7fff8205170825e2d41da815960b1cc6d.zip
octave-control-3.0.0-1: updating version
-rw-r--r--pcr/octave-control/PKGBUILD10
-rw-r--r--pcr/octave-control/octave-control.install8
2 files changed, 13 insertions, 5 deletions
diff --git a/pcr/octave-control/PKGBUILD b/pcr/octave-control/PKGBUILD
index ad28841c8..4306d73b2 100644
--- a/pcr/octave-control/PKGBUILD
+++ b/pcr/octave-control/PKGBUILD
@@ -9,7 +9,7 @@
_pack=control
pkgname=octave-$_pack
-pkgver=2.8.1
+pkgver=3.0.0
pkgrel=1
pkgdesc="Computer-Aided Control System Design (CACSD) Tools for GNU Octave, based on the proven SLICOT Library"
arch=(any)
@@ -25,7 +25,11 @@ install=$pkgname.install
_archive=$_pack-$pkgver.tar.gz
source=("http://downloads.sourceforge.net/octave/$_archive")
noextract=("$_archive")
-md5sums=('0b6141a0937c9be83cabb49256d0f3c8')
+md5sums=('9fc314723673578f7d8ecd065a6a846d')
+
+_octave_run() {
+ octave --no-history --no-init-file --no-window-system -q -f --eval "$*"
+}
_install_dir() {
src=$1
@@ -39,7 +43,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/pcr/octave-control/octave-control.install b/pcr/octave-control/octave-control.install
index be6e3265f..a071976f8 100644
--- a/pcr/octave-control/octave-control.install
+++ b/pcr/octave-control/octave-control.install
@@ -1,7 +1,11 @@
_pack=control
+_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"
}