[arch-commits] CVS update of extra/science/blas (PKGBUILD)

Jan de Groot jgc at archlinux.org
Sat Mar 8 22:44:32 UTC 2008


    Date: Saturday, March 8, 2008 @ 17:44:32
  Author: jgc
    Path: /home/cvs-extra/extra/science/blas

Modified: PKGBUILD (1.3 -> 1.4)

upgpkg: blas 19980702-4
    Recompile with gfortran 4.3.0


----------+
 PKGBUILD |   33 ++++++++++++++++++---------------
 1 file changed, 18 insertions(+), 15 deletions(-)


Index: extra/science/blas/PKGBUILD
diff -u extra/science/blas/PKGBUILD:1.3 extra/science/blas/PKGBUILD:1.4
--- extra/science/blas/PKGBUILD:1.3	Thu Jul 26 19:56:07 2007
+++ extra/science/blas/PKGBUILD	Sat Mar  8 17:44:32 2008
@@ -1,31 +1,34 @@
-# $Id: PKGBUILD,v 1.3 2007/07/26 23:56:07 dan Exp $
+# $Id: PKGBUILD,v 1.4 2008/03/08 22:44:32 jgc Exp $
 # Maintainer: damir <damir at archlinux.org>
 # Community Maintainer: Eric Belanger <belanger at astro.umontreal.ca>
 # Contributor: William Rea <sillywilly at gmail.com>
 
 pkgname=blas
 pkgver=19980702
-pkgrel=3.1
+pkgrel=4
 pkgdesc="Basic Linear Algebra Subprograms"
 arch=('i686' 'x86_64')
 url="http://www.netlib.org/blas"
-license="custom"
+license=('custom')
 depends=('glibc')
-makedepends=('gcc-fortran')
 source=(http://www.netlib.org/blas/blas.tgz Makefile license.txt)
-md5sums=('5811e4b3dffa7a10956abf923cec1bd4' '497f389126aa0440754de491fec5ebae'\
+md5sums=('7e6af7022440d8688d16be86d55fb358' '497f389126aa0440754de491fec5ebae'\
          '38b6acb8ed5691d25863319d30a8b365')
 
 build() {
-  cd $startdir/src
-if [ "$CARCH" = "x86_64" ]; then
-    FC="gfortran" FFLAGS="${CFLAGS} -fPIC" make static shared
-  else  FC="gfortran" FFLAGS="${CFLAGS}" make static shared
-fi
-  install -D -m644 libblas.a $startdir/pkg/usr/lib/libblas.a
-  install -D -m755 libblas.so.3.0.3 $startdir/pkg/usr/lib/libblas.so.3.0.3
-  ln -s libblas.so.3.0.3 $startdir/pkg/usr/lib/libblas.so
-  ln -s libblas.so.3.0.3 $startdir/pkg/usr/lib/libblas.so.3 
+  cd ${startdir}/src/BLAS
+  export FFLAGS="${CFLAGS}"
+  if [ "${CARCH}" = "x86_64" ]; then
+    FFLAGS="${FFLAGS} -fPIC"
+  fi
+  cp ${startdir}/src/Makefile ${startdir}/src/BLAS/
+  FC="gfortran" FFLAGS="${FFLAGS}" make static shared || return 1
+
+  install -D -m644 libblas.a ${startdir}/pkg/usr/lib/libblas.a
+  install -D -m755 libblas.so.3.0.3 ${startdir}/pkg/usr/lib/libblas.so.3.0.3
+  ln -s libblas.so.3.0.3 ${startdir}/pkg/usr/lib/libblas.so
+  ln -s libblas.so.3.0.3 ${startdir}/pkg/usr/lib/libblas.so.3 
   # install license
-  install -D -m644 $startdir/src/license.txt $startdir/pkg/usr/share/licenses/$pkgname/license.txt
+  install -m755 -d ${startdir}/pkg/usr/share/licenses/${pkgname}
+  install -D -m644 ${startdir}/src/license.txt ${startdir}/pkg/usr/share/licenses/${pkgname}/license.txt
 }




More information about the arch-commits mailing list