updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / lapacke / PKGBUILD
blobb312b213678c0612682843c30364fdb693df4ab0
1 # Maintainer: Giuseppe Borzi <gborzi___AT___ieee___DOT___org>
2 pkgname=lapacke
3 pkgver=1.0.0.009
4 pkgrel=1
5 pkgdesc="Standard C language APIs for LAPACK"
6 arch=('i686' 'x86_64')
7 url="http://www.netlib.org/lapack"
8 license=('custom')
9 depends=('glibc' 'lapack')
10 source=($url/$pkgname.tgz missing.patch)
11 md5sums=('355f286f004ec0ccc9a6feac27c4ea0f' 'a41dcd281f079652c31ec4aeebac163e')
13 build() {
14   cd "$srcdir/$pkgname"
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
24   #cd testing
25   #LD_LIBRARY_PATH="../.." make CC=cc CFLAGS="-O0" LINKER=cc LIBS="" \
26   #  LAPACKE="-L../.. -llapacke"
27   #! grep -q FAILED interface/*.out
30 package() {
31   cd "$srcdir/$pkgname"
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: