mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 15:47:15 +08:00
44 lines
1.3 KiB
Bash
44 lines
1.3 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=blas
|
|
pkgver=20070405
|
|
pkgrel=2
|
|
pkgdesc="Basic Linear Algebra Subprograms"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.netlib.org/blas"
|
|
license=('custom')
|
|
depends=('gcc-libs>=4.3.2')
|
|
makedepends=('gcc-fortran')
|
|
source=(http://www.netlib.org/blas/blas.tgz
|
|
make.inc
|
|
license.txt)
|
|
md5sums=('7e6af7022440d8688d16be86d55fb358'
|
|
'c9822d4699733bdee98f417565181f9c'
|
|
'38b6acb8ed5691d25863319d30a8b365')
|
|
|
|
build() {
|
|
cd "${srcdir}/BLAS"
|
|
|
|
# Build with Position Independent Code (PIC) FS#12464 (i686), required for x86_64
|
|
CFLAGS="${CFLAGS} -fPIC"
|
|
|
|
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
|
|
}
|