PKGBUILDs/extra/blas/PKGBUILD
2009-10-18 22:17:58 -05:00

34 lines
1.1 KiB
Bash

# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: Damir <damir.archlinux.org>
# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
# Contributor: William Rea <sillywilly@gmail.com>
pkgname=blas
pkgver=20070405
pkgrel=2
pkgdesc="Basic Linear Algebra Subprograms"
arch=('arm')
url="http://www.netlib.org/blas"
license=('custom')
source=(http://www.netlib.org/blas/blas.tgz
make.inc
license.txt)
md5sums=('7e6af7022440d8688d16be86d55fb358'
'c9822d4699733bdee98f417565181f9c'
'38b6acb8ed5691d25863319d30a8b365')
build() {
cd "${srcdir}/BLAS"
cp "${srcdir}/make.inc" "${srcdir}/BLAS/" || return 1
make OPTS="${CFLAGS}" NOOPT="${CFLAGS/-O?/-O0}" || return 1
install -m755 -d "${pkgdir}/usr/lib"
install -m755 libblas.so.3.0.3 "${pkgdir}/usr/lib/" || return 1
ln -sf libblas.so.3.0.3 "${pkgdir}/usr/lib/libblas.so"
ln -sf libblas.so.3.0.3 "${pkgdir}/usr/lib/libblas.so.3"
# Install custom license
install -d ${pkgdir}/usr/share/licenses/${pkgname}
install -m644 ${srcdir}/license.txt ${pkgdir}/usr/share/licenses/${pkgname}/ || return 1
}