diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-10-08 18:18:58 -0200 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2014-10-08 18:18:58 -0200 |
commit | 58c74b2b003f29da380ba81dd5462b58c01582d6 (patch) | |
tree | 290ebb83d306cd9d47ea5af7a925350b06ab39f4 /pcr/octave-control | |
parent | 77e69ee75cf260af0ade12c13e9f3b164b49d920 (diff) | |
parent | 93f74bc69ff4e26d7a167db715c5baa508ada89e (diff) | |
download | abslibre-58c74b2b003f29da380ba81dd5462b58c01582d6.tar.gz abslibre-58c74b2b003f29da380ba81dd5462b58c01582d6.tar.bz2 abslibre-58c74b2b003f29da380ba81dd5462b58c01582d6.zip |
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre
Diffstat (limited to 'pcr/octave-control')
-rw-r--r-- | pcr/octave-control/PKGBUILD | 39 | ||||
-rw-r--r-- | pcr/octave-control/octave-control.install | 20 |
2 files changed, 59 insertions, 0 deletions
diff --git a/pcr/octave-control/PKGBUILD b/pcr/octave-control/PKGBUILD new file mode 100644 index 000000000..3db8a4593 --- /dev/null +++ b/pcr/octave-control/PKGBUILD @@ -0,0 +1,39 @@ +# +# Contributor : Clemens Buchacher <drizzd@aon.at> +# Maintainer : Aurélien DESBRIÈRES <aurelien@hackers.camp> +# +# 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=control +pkgname=octave-$_pack +pkgver=2.6.4 +pkgrel=1 +pkgdesc="Computer-Aided Control System Design (CACSD) Tools for GNU Octave, based on the proven SLICOT Library" +arch=(any) +url="http://octave.sourceforge.net/$_pack/" +license=('GPL3') +groups=('octave-forge') +depends=('octave>=3.6.0') +makedepends=('gcc-fortran') +optdepends=() +backup=() +options=('!makeflags') +install=$pkgname.install +_archive=$_pack-$pkgver.tar.gz +source=("http://downloads.sourceforge.net/octave/$_archive") +noextract=("$_archive") + +build() { + cd "$srcdir" + mkdir -p builddir + octave -q -f --eval "pkg build -verbose -nodeps builddir $_archive" +} + +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" +} diff --git a/pcr/octave-control/octave-control.install b/pcr/octave-control/octave-control.install new file mode 100644 index 000000000..2ddb42de9 --- /dev/null +++ b/pcr/octave-control/octave-control.install @@ -0,0 +1,20 @@ +_pack=control +_prefix=/usr/share/octave/packages +_libdir=/usr/lib/octave/packages + +## arg 1: the new package version +post_install() { + octave -q -f --eval "pkg prefix $prefix $libdir; pkg install -verbose -global /usr/share/octave/$_pack.tar.gz" +} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + post_remove + post_install +} + +## arg 1: the old package version +post_remove() { + octave -q -f --eval "pkg prefix $prefix $libdir; pkg uninstall $_pack; pkg rebuild -global" +} |