diff options
Diffstat (limited to 'pcr/octave-general/PKGBUILD')
-rw-r--r-- | pcr/octave-general/PKGBUILD | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pcr/octave-general/PKGBUILD b/pcr/octave-general/PKGBUILD new file mode 100644 index 000000000..9a4790fea --- /dev/null +++ b/pcr/octave-general/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=general +pkgname=octave-$_pack +pkgver=1.3.4 +pkgrel=1 +pkgdesc="General tools for Octave." +arch=(any) +url="http://octave.sourceforge.net/$_pack/" +license=('custom') +groups=('octave-forge') +depends=('octave>=3.8.0') +makedepends=() +optdepends=() +backup=() +options=() +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" +} |