core/openblas/PKGBUILD
Fabian Kosmale a3c485b75d openblas: do not provide blas
Reasoning: We explicitly link against openblas and do not provide
a symlink for libblas. This makes substituting the blas library
impossible, but this is intentional: As a small distribution,
there is little point in supporting multiple blas versions.
Furthermore, anyone who wants maximal performance should not
only use an optimized blas library, but also compile its consumer
against it.
2016-03-27 10:02:04 +01:00

42 lines
1.3 KiB
Bash

# Maintainer: Fabian Kosmale
# Contributor (Arch original): Giuseppe Borzi <gborzi _AT_ ieee _DOT_ org>
pkgname=openblas
_pkgname=OpenBLAS
pkgver=0.2.17
pkgrel=8
pkgdesc="An optimized BLAS library based on GotoBLAS2 1.13 BSD "
arch=('i686' 'x86_64')
url="http://www.openblas.net/"
license=('BSD')
depends=('gcc-libs')
makedepends=('perl' 'gcc-fortran')
conflicts=('blas' 'cblas')
options=(!makeflags !emptydirs staticlibs)
source=(${_pkgname}-v${pkgver}.tar.gz::http://github.com/xianyi/OpenBLAS/archive/v${pkgver}.tar.gz)
sha256sums=('0fe836dfee219ff4cadcc3567fb2223d9e0da5f60c7382711fb9e2c35ecf0dbf')
build() {
cd "$srcdir/$_pkgname-$pkgver"
unset CFLAGS
unset CXXFLAGS
# using and OPENMP=1 should be the most sensible option
# see https://github.com/xianyi/OpenBLAS/wiki/faq for details
# we use NO_LAPACK and NO_LAPACKE, as LAPACK should be provided by our lapack package
make USE_OPENMP=1 NO_LAPACK=1 NO_LAPACKE=1 MAJOR_VERSION=3 DYNAMIC_ARCH=1
}
package() {
cd "$srcdir/$_pkgname-$pkgver"
make PREFIX="$pkgdir/usr" USE_OPENMP=1 NO_LAPACK=1 NO_LAPACKE=1 MAJOR_VERSION=3 DYNAMIC_ARCH=1 install
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
# Remove reference to ${pkgdir}
sed -i -e "s|${pkgdir}||" "${pkgdir}/usr/lib/cmake/openblas/OpenBLASConfig.cmake"
}
# vim:set ts=2 sw=2 et: