summaryrefslogtreecommitdiff
path: root/pcr/octave-image/PKGBUILD
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2015-07-20 18:20:34 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2015-07-20 18:20:34 -0500
commit49a3d7c4ce1f0888cbf01f69d3e89acbd31ce7f0 (patch)
treed25edd291413c6f7d696f1ef9c8fedcd5a963ef2 /pcr/octave-image/PKGBUILD
parent3eb687c125594fbff28698b946c348d134455e31 (diff)
downloadabslibre-49a3d7c4ce1f0888cbf01f69d3e89acbd31ce7f0.tar.gz
abslibre-49a3d7c4ce1f0888cbf01f69d3e89acbd31ce7f0.tar.bz2
abslibre-49a3d7c4ce1f0888cbf01f69d3e89acbd31ce7f0.zip
octave-image-2.2.2-2: rebuild
Diffstat (limited to 'pcr/octave-image/PKGBUILD')
-rw-r--r--pcr/octave-image/PKGBUILD29
1 files changed, 22 insertions, 7 deletions
diff --git a/pcr/octave-image/PKGBUILD b/pcr/octave-image/PKGBUILD
index 4978b5bf6..208c509b1 100644
--- a/pcr/octave-image/PKGBUILD
+++ b/pcr/octave-image/PKGBUILD
@@ -12,7 +12,7 @@
_pack=image
pkgname=octave-$_pack
pkgver=2.2.2
-pkgrel=1
+pkgrel=2
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)
url="http://octave.sourceforge.net/$_pack/"
@@ -29,14 +29,29 @@ source=("http://downloads.sourceforge.net/octave/$_archive")
noextract=("$_archive")
md5sums=('c02a05ba37ffb38ad2b59906a56c7807')
+_install_dir() {
+ src=$1
+ dst=$2
+ mkdir -p "$(dirname "$dst")"
+ cp -rT "$src" "$dst"
+}
+
build() {
- cd "$srcdir"
- mkdir -p builddir
- octave -q -f --eval "pkg build -verbose -nodeps builddir $_archive"
+ _prefix="$srcdir"/install_prefix
+ _archprefix="$srcdir"/install_archprefix
+ mkdir -p "$_prefix" "$_archprefix"
+ cd "$srcdir"
+ octave -q -f --eval "$(cat <<-EOF
+ pkg local_list octave_packages;
+ pkg prefix $_prefix $_archprefix;
+ pkg install -verbose -nodeps $_archive;
+ EOF
+ )"
}
package() {
- mkdir -p "$pkgdir/usr/share/octave/packages"
- mkdir -p "$pkgdir/usr/lib/octave/packages"
- cp "$srcdir/builddir/$_archive" "$pkgdir/usr/share/octave/$_pack.tar.gz"
+ prefix=$pkgdir/usr/share/octave/packages
+ archprefix=$pkgdir/usr/lib/octave/packages
+ _install_dir "$srcdir"/install_prefix "$prefix"
+ _install_dir "$srcdir"/install_archprefix "$archprefix"
}