PKGBUILDs/extra/lapack/PKGBUILD

52 lines
1.7 KiB
Bash
Raw Normal View History

2009-09-26 14:35:50 +00:00
# $Id: PKGBUILD 43318 2009-06-22 10:13:38Z ronald $
# Maintainer: Ronald van Haren <ronald.archlinux.org>
# Contributor: damir <damir@archlinux.org>
# Contributor: Jason Taylor <jftaylor21@gmail.com>
pkgname=lapack
pkgver=3.2.1
pkgrel=1
pkgdesc="Linear Algebra PACKage"
url="http://www.netlib.org/lapack"
arch=('arm')
license=("custom")
depends=('blas>=20070405-2')
source=(http://www.netlib.org/${pkgname}/${pkgname}-${pkgver}.tgz
make.inc.archlinux blas-link.patch)
md5sums=('a3202a4f9e2f15ffd05d15dab4ac7857'
'cc368c407e396227c473db5bac92cf02'
'd396697499466389f5bbea6b5ec9b489')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
install -d "${pkgdir}/usr/lib" || return 1
# install -d "${pkgdir}/usr/share/man/man1" || return 1
cp "${srcdir}/make.inc.archlinux" make.inc || return 1
# fix blas linking FS#13093
patch -Np1 -i ${srcdir}/blas-link.patch || return 1
# Build with Position Independent Code (PIC) FS#12464 (i686), required for x86_64
CFLAGS="${CFLAGS} -fPIC"
make clean
make lib OPTS="${CFLAGS}" NOOPT="${CFLAGS/-O?/-O0}" || return 1
install -m755 *.so* "${startdir}/pkg/usr/lib/" || return 1
ln -sf liblapack.so.3 "${pkgdir}/usr/lib/liblapack.so"
ln -sf libtmglib.so.3 "${pkgdir}/usr/lib/libtmglib.so"
# upstream does not provide manpages for this release
# you can browse them online: http://www.netlib.org/lapack/explore-html/
# Manpages
#for _file in manpages/man/manl/* manpages/blas/man/manl/*; do
# install -m644 "${_file}" "${pkgdir}/usr/share/man/man1/$(basename ${_file} .l).1" || return 1
#done
# Install custom license
install -Dm644 ${srcdir}/${pkgname}-${pkgver}/LICENSE \
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" || return 1
}