updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / scalasca / PKGBUILD
blobeec3387effcb87dd270cfc38b8fa574d64a8c33b
1 # Maintainer: Ghislain Viguier <ghislain.viguier@gmail.com>
2 pkgname=scalasca
3 pkgver=1.3.3
4 pkgrel=1
5 #epoch=
6 pkgdesc="Scalasca is a software tool that supports the performance optimization of parallel programs by measuring and analyzing their runtime behavior."
7 arch=('i686' 'x86_64')
8 url="http://www.scalasca.org/start.html"
9 license=('custom')
10 #groups=()
11 depends=('openmpi')
12 makedepends=('qt' 'binutils')
13 #checkdepends=()
14 #optdepends=()
15 #provides=()
16 #conflicts=()
17 #replaces=()
18 #backup=()
19 #options=()
20 install=scalasca.install
21 #changelog=
22 source=(http://www2.fz-juelich.de/zam/datapool/scalasca/$pkgname-$pkgver.tar.gz)
23 #noextract=()
24 md5sums=('b9addfdd209e52b204f7fadd5c76036d')
27 build() {
28         cd "$srcdir/$pkgname-$pkgver"
29         pwd
30         # type size_t is not defined. Needs #include<stdlib.h> in ./build/cube-3.0/src/tools/InfoObj.h :
31         /bin/sed -i '1i#include<stdlib.h>' $srcdir/$pkgname-$pkgver/cube-3.0/src/tools/InfoObj.h
32         ./configure --prefix=/usr --mpi=openmpi
33         cd build-linux-gomp-openmpi
34         make
37 check() {
38         cd "$srcdir/$pkgname-$pkgver"
41 package() {
42         cd "$srcdir/$pkgname-$pkgver/build-linux-gomp-openmpi"
43         make PREFIX=$pkgdir/usr install
44         # /usr/bin/opari is given by openmpi
45         rm $pkgdir/usr/bin/opari