summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorwangjiezhe2015-10-28 12:05:57 +0800
committerwangjiezhe2015-10-28 12:05:57 +0800
commitfc13dc6ce4537a4dee0cb9cb1edd0ce9a0ddd43e (patch)
treee20600fdd92287cd63be4d5145a6b26cbdd39f37
parent2e14a282d4001711fa19c67274cc60ae44be989b (diff)
downloadaur-fc13dc6ce4537a4dee0cb9cb1edd0ce9a0ddd43e.tar.gz
Use _octave_run
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD8
-rw-r--r--octave-sparsersb.install8
3 files changed, 13 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 91c3e416ab5..cd5bed8b685 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = octave-sparsersb
pkgdesc = Interface to the librsb package implementing the RSB sparse matrix format.
pkgver = 1.0.0
- pkgrel = 1
+ pkgrel = 2
url = http://octave.sourceforge.net/sparsersb/
install = octave-sparsersb.install
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index b49cdc1b0db..7066dd31716 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@
_pack=sparsersb
pkgname=octave-$_pack
pkgver=1.0.0
-pkgrel=1
+pkgrel=2
pkgdesc="Interface to the librsb package implementing the RSB sparse matrix format."
arch=(any)
url="http://octave.sourceforge.net/$_pack/"
@@ -27,6 +27,10 @@ source=("http://downloads.sourceforge.net/octave/$_archive")
noextract=("$_archive")
md5sums=('0144967be900b99d654af767db775772')
+_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;
diff --git a/octave-sparsersb.install b/octave-sparsersb.install
index cadfe08e5c8..b3606521012 100644
--- a/octave-sparsersb.install
+++ b/octave-sparsersb.install
@@ -1,7 +1,11 @@
_pack=sparsersb
+_octave_run() {
+ octave --no-history --no-init-file --no-window-system -q -f --eval "$*"
+}
+
post_install() {
- octave-cli -q -f --eval "pkg rebuild -global $_pack"
+ _octave_run "pkg rebuild -global $_pack"
}
post_upgrade() {
@@ -9,5 +13,5 @@ post_upgrade() {
}
post_remove() {
- octave-cli -q -f --eval "pkg rebuild -global"
+ _octave_run "pkg rebuild -global"
}