blob: 5f884305b7d67f41d4d81e59b38a9069deffdeff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Contributor: jdarch <jda -dot- cloud -plus- archlinux -at- gmail -dot- com>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
pkgname=blis
pkgver=0.6.1
pkgrel=1
pkgdesc="BLAS-like Library Instantiation Software framework by the Science of High-Performance Computing Group"
arch=('x86_64')
license=('custom:BSD')
depends=('glibc')
url='https://github.com/flame/blis'
options=('!makeflags' '!emptydirs')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/flame/blis/archive/${pkgver}.tar.gz" fpic.patch blis_profile.sh)
sha512sums=('85e4fc58b32d7402ecc4956c48fb20decfe29424d54f056abff1333e887a226a4a1e5537be0843b0c7e503afc628efdeaec4f446993227d01f229174bf0294d0'
'e9b7558a8c703570089ba1923d03444ec0a63c9d10cc8931dc9a19a0faa5553eecbae5af9ca4923f425259173fc7958e852c6ef9c9375f83b5d21c4634e088b5'
'cb53fa1f8c540062d4d55b4b91c787a821c563ea0bdb4e37f1db08869c320132a493e6b55f5d876418d56ad5b4f1dc5553f871862418393614e160dd1329ec9e')
prepare() {
cd $pkgname-$pkgver
patch -Np1 < "$srcdir"/fpic.patch
}
build() {
cd $pkgname-$pkgver
CFLAGS+=" -fPIC" ./configure -p "${pkgdir}"/usr auto
make
}
check() {
cd blis-${pkgver}/testsuite
make
./test_libblis.x
}
package() {
install -d "$pkgdir"/etc/profile.d
cd $pkgname-$pkgver
make install BLIS_ENABLE_DYNAMIC_BUILD:=yes
install -Dm755 "$srcdir"/blis_profile.sh "${pkgdir}"/etc/profile.d/blis.sh
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/${pkgname}/LICENSE
}
|