updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / octave-mechanics / PKGBUILD
blob1c79099c48dab41a69261d24847301a24c76cc36
1 # Maintainer: Clemens Buchacher <drizzd@aon.at>
2 _pack=mechanics
3 pkgname=octave-$_pack
4 pkgver=1.1.0
5 pkgrel=1
6 pkgdesc="Library with functions useful for numerical computation in classical mechanics and structural analysis."
7 arch=(any)
8 url="http://octave.sourceforge.net/$_pack/"
9 license=('GPL3')
10 depends=('octave>=3.4.0')
11 makedepends=()
12 optdepends=()
13 backup=()
14 options=()
15 install=$pkgname.install
16 _archive=$_pack-$pkgver.tar.gz
17 source=("http://downloads.sourceforge.net/octave/$_pack-$pkgver.tar.gz")
18 noextract=("$_archive")
19 md5sums=('80ed75f277aea600ce7e2797a368e9eb')
21 build() {
22   cd "$srcdir"
23   mkdir -p builddir
24   octave -q -f --eval "pkg build -nodeps builddir $_archive"
27 package() {
28   mkdir -p "$pkgdir/usr/share/octave/packages"
29   mkdir -p "$pkgdir/usr/lib/octave/packages"
30   cp "$srcdir/builddir/$_archive" "$pkgdir/usr/share/octave/$_pack.tar.gz"