summaryrefslogtreecommitdiff
path: root/pcr/octave-image
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/octave-image')
-rw-r--r--pcr/octave-image/PKGBUILD10
-rw-r--r--pcr/octave-image/octave-image.install8
2 files changed, 13 insertions, 5 deletions
diff --git a/pcr/octave-image/PKGBUILD b/pcr/octave-image/PKGBUILD
index be13c904c..379da8858 100644
--- a/pcr/octave-image/PKGBUILD
+++ b/pcr/octave-image/PKGBUILD
@@ -11,7 +11,7 @@
_pack=image
pkgname=octave-$_pack
-pkgver=2.4.1
+pkgver=2.6.0
pkgrel=1
pkgdesc="The Octave-forge Image package provides functions for processing images. The package also provides functions for feature extraction, image statistics, spatial and geometric transformations, morphological operations, linear filtering, and much more."
arch=(any)
@@ -27,7 +27,11 @@ install=$pkgname.install
_archive=$_pack-$pkgver.tar.gz
source=("http://downloads.sourceforge.net/octave/$_archive")
noextract=("$_archive")
-md5sums=('ec07f0c9daf824e908881d95a65fbe82')
+md5sums=('493621de06fe25ccb48901d762164d9c')
+
+_octave_run() {
+ octave --no-history --no-init-file --no-window-system -q -f --eval "$*"
+}
_install_dir() {
src=$1
@@ -41,7 +45,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-image/octave-image.install b/pcr/octave-image/octave-image.install
index 7c9ea5667..f86e8d16c 100644
--- a/pcr/octave-image/octave-image.install
+++ b/pcr/octave-image/octave-image.install
@@ -1,7 +1,11 @@
_pack=image
+_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"
}