1 # Maintainer: Giuseppe Borzi <gborzi___AT___ieee___DOT___org>
5 pkgdesc="Standard C language APIs for LAPACK"
7 url="http://www.netlib.org/lapack"
9 depends=('glibc' 'lapack')
10 source=($url/$pkgname.tgz missing.patch)
11 md5sums=('355f286f004ec0ccc9a6feac27c4ea0f' 'a41dcd281f079652c31ec4aeebac163e')
16 patch -Np0 -i "$srcdir/missing.patch"
17 sed -i -e 's_../../$(LAPACKE)_$(LAPACKE)_' testing/interface/Makefile
18 make CC=cc CFLAGS="$CFLAGS -fPIC" lapacke
19 cc -shared -Wl,-soname,lib$pkgname.so.1 -o lib$pkgname.so.$pkgver \
20 utils/*.o src/*.o -llapack
21 ln -s lib$pkgname.so.$pkgver lib$pkgname.so.1
22 ln -s lib$pkgname.so.1 lib$pkgname.so
23 # Uncomment the following four lines to test the package
25 #LD_LIBRARY_PATH="../.." make CC=cc CFLAGS="-O0" LINKER=cc LIBS="" \
26 # LAPACKE="-L../.. -llapacke"
27 #! grep -q FAILED interface/*.out
33 install -dm755 "$pkgdir/usr/lib"
34 cp -d lib$pkgname* "$pkgdir/usr/lib"
35 install -dm755 "$pkgdir/usr/include"
36 cp include/*.h "$pkgdir/usr/include"
37 install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/License.txt"
40 # vim:set ts=2 sw=2 et: