diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-07-20 18:07:15 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-07-20 18:07:15 -0500 |
commit | c17675a326b91be9d2e401b9241ffe42f38c43a2 (patch) | |
tree | c238d201b97d57da17020670ff8a0556e8d83a53 /pcr/octave-signal | |
parent | 492b06012eb663166032a2c35650b3ff62501a92 (diff) |
octave-signal-1.3.2-2: rebuild
Diffstat (limited to 'pcr/octave-signal')
-rw-r--r-- | pcr/octave-signal/PKGBUILD | 29 | ||||
-rw-r--r-- | pcr/octave-signal/octave-signal.install | 11 |
2 files changed, 25 insertions, 15 deletions
diff --git a/pcr/octave-signal/PKGBUILD b/pcr/octave-signal/PKGBUILD index 903c3978a..431d640ce 100644 --- a/pcr/octave-signal/PKGBUILD +++ b/pcr/octave-signal/PKGBUILD @@ -10,7 +10,7 @@ _pack=signal pkgname=octave-$_pack pkgver=1.3.2 -pkgrel=1 +pkgrel=2 pkgdesc="Signal processing tools, including filtering, windowing and display functions." arch=(any) url="http://octave.sourceforge.net/$_pack/" @@ -27,14 +27,29 @@ source=("http://downloads.sourceforge.net/octave/$_archive") noextract=("$_archive") md5sums=('04a4f1142fe71f14c3b6d7d1d369c215') +_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" } diff --git a/pcr/octave-signal/octave-signal.install b/pcr/octave-signal/octave-signal.install index 42a675a36..4b9415f43 100644 --- a/pcr/octave-signal/octave-signal.install +++ b/pcr/octave-signal/octave-signal.install @@ -1,18 +1,13 @@ _pack=signal -## arg 1: the new package version post_install() { - octave -q -f --eval "pkg install -verbose -global /usr/share/octave/$_pack.tar.gz" + octave -q -f --eval "pkg rebuild -global $_pack" } -## arg 1: the new package version -## arg 2: the old package version post_upgrade() { - post_remove - post_install + post_install } -## arg 1: the old package version post_remove() { - octave -q -f --eval "pkg uninstall $_pack; pkg rebuild -global" + octave -q -f --eval "pkg rebuild -global" } |