1 #Mantainer: Filippo Squillace <sqoox85@gmail.com>
4 # build script needs underscore notation
5 pkgver2=$(echo $pkgver | tr . _)
7 pkgdesc="Interactive parallel visualization and graphical analysis tool."
9 url="http://portal.nersc.gov"
13 source=("$url/svn/${pkgname}/trunk/releases/${pkgver}/build_${pkgname}${pkgver2}")
15 wget -O ${pkgname}_md5_checksums $url/svn/${pkgname}/trunk/releases/${pkgver}/${pkgname}_md5_checksums
16 md5=$(grep build_${pkgname}${pkgver2} ${pkgname}_md5_checksums | awk '{print $1}')
22 # Check integrity for the already downloaded files in the current directory
23 echo "Checking integrity for the third party files..."
24 for var in $(find $srcdir -maxdepth 1 -type f | xargs)
27 md5_grep=$(grep $var ../${pkgname}_md5_checksums | awk '{print $1}')
28 if [ ! $md5_grep = "" ]
30 md5=$(md5sum $var | awk '{print $1}')
32 if [ $md5_grep -ne $md5 ]
35 echo "Integrity not passed for $var. Deleting it..."
42 echo "Building $pkgname..."
43 chmod +x build_${pkgname}${pkgver2}
44 echo yes | ./build_${pkgname}${pkgver2} --console --installation-build-dir $srcdir
46 echo "Copying package..."
47 mkdir -p $pkgdir/opt/$pkgname
48 cp -rf $srcdir/$pkgname/* $pkgdir/opt/$pkgname
50 # Copy the bin visit file
51 echo "Simlink $pkgname file..."
52 mkdir -p ${pkgdir}/usr/bin
53 ln -s $pkgdir/opt/${pkgname}/${pkgname} ${pkgdir}/usr/bin/${pkgname}
57 # vim:set ts=2 sw=2 et: