diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-11-30 19:13:32 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2015-11-30 19:13:32 -0500 |
commit | c90ed53b40a125b1dd016722a6afadfbeb6481cb (patch) | |
tree | 648de234e28a234b542c07c5a7816079181357f5 /pcr/octave-communications/PKGBUILD | |
parent | 665a152ab3300107fca647bf8256e86566eacd6d (diff) | |
download | abslibre-c90ed53b40a125b1dd016722a6afadfbeb6481cb.tar.gz abslibre-c90ed53b40a125b1dd016722a6afadfbeb6481cb.tar.bz2 abslibre-c90ed53b40a125b1dd016722a6afadfbeb6481cb.zip |
octave-communications-1.2.1-1: updating version
Diffstat (limited to 'pcr/octave-communications/PKGBUILD')
-rw-r--r-- | pcr/octave-communications/PKGBUILD | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/pcr/octave-communications/PKGBUILD b/pcr/octave-communications/PKGBUILD index 31f11bb8c..7fe453892 100644 --- a/pcr/octave-communications/PKGBUILD +++ b/pcr/octave-communications/PKGBUILD @@ -1,6 +1,6 @@ # -# Maintainer : Aurélien DESBRIÈRES <aurelien@hackers.camp> -# Contributor : Clemens Buchacher <drizzd@aon.at> +# Maintainer (Arch): Clemens Buchacher <drizzd@aon.at> +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> # # You can use the newpkg script from # https://github.com/drizzd/octave-forge-archlinux to automatically generate @@ -9,7 +9,7 @@ _pack=communications pkgname=octave-$_pack -pkgver=1.2.0 +pkgver=1.2.1 pkgrel=1 pkgdesc="Digital Communications, Error Correcting Codes (Channel Code), Source Code functions, Modulation and Galois Fields" arch=(any) @@ -25,15 +25,31 @@ install=$pkgname.install _archive=$_pack-$pkgver.tar.gz source=("http://downloads.sourceforge.net/octave/$_archive") noextract=("$_archive") +md5sums=('cf5ad84af0c3221199b2e04109946562') + +_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" } |