diff options
author | Clemens Buchacher | 2015-06-10 10:51:55 +0200 |
---|---|---|
committer | Clemens Buchacher | 2015-06-10 10:51:55 +0200 |
commit | c2a2c76cbd80daf1de4a2f9fc5910948e77603d6 (patch) | |
tree | 2bf33afc497f791de71edeb5351e031a28d84eb8 | |
download | aur-c2a2c76cbd80daf1de4a2f9fc5910948e77603d6.tar.gz |
linear-algebra 2.2.1-2
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 54 | ||||
-rw-r--r-- | octave-linear-algebra.install | 13 |
4 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4a6ba84c6826 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = octave-linear-algebra + pkgdesc = Additional linear algebra code, including general SVD and matrix functions. + pkgver = 2.2.1 + pkgrel = 2 + url = http://octave.sourceforge.net/linear-algebra/ + install = octave-linear-algebra.install + arch = any + groups = octave-forge + license = custom + depends = octave>=3.2.3 + depends = octave-general>=1.3.0 + noextract = linear-algebra-2.2.1.tar.gz + source = http://downloads.sourceforge.net/octave/linear-algebra-2.2.1.tar.gz + md5sums = 99bb7f404d06447f379fb3100cc46c64 + +pkgname = octave-linear-algebra + diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..ef46e7bf4e8c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.tar.gz +*.tar.xz +/src/ +/pkg/ diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7101a9f47dc3 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,54 @@ +# +# Maintainer: Clemens Buchacher <drizzd@aon.at> +# +# You can use the newpkg script from +# https://github.com/drizzd/octave-forge-archlinux to automatically generate +# new octave-forge PKGBUILDs or update existing ones. Patches welcome. +# + +_pack=linear-algebra +pkgname=octave-$_pack +pkgver=2.2.1 +pkgrel=2 +pkgdesc="Additional linear algebra code, including general SVD and matrix functions." +arch=(any) +url="http://octave.sourceforge.net/$_pack/" +license=('custom') +groups=('octave-forge') +depends=('octave>=3.2.3' 'octave-general>=1.3.0') +makedepends=() +optdepends=() +backup=() +options=() +install=$pkgname.install +_archive=$_pack-$pkgver.tar.gz +source=("http://downloads.sourceforge.net/octave/$_archive") +noextract=("$_archive") +md5sums=('99bb7f404d06447f379fb3100cc46c64') + +_install_dir() { + src=$1 + dst=$2 + mkdir -p "$(dirname "$dst")" + cp -rT "$src" "$dst" +} + +build() { + _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() { + 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/octave-linear-algebra.install b/octave-linear-algebra.install new file mode 100644 index 000000000000..b7e9eea37011 --- /dev/null +++ b/octave-linear-algebra.install @@ -0,0 +1,13 @@ +_pack=linear-algebra + +post_install() { + octave -q -f --eval "pkg rebuild -global $_pack" +} + +post_upgrade() { + post_install +} + +post_remove() { + octave -q -f --eval "pkg rebuild -global" +} |