1 # Contributor: Carlo Casta <carlo.casta at gmail dot com>
6 pkgdesc="a cross-platform numerical analysis and data processing library"
8 url="http://www.alglib.net"
10 depends=('gmp' 'mpfr')
11 source=(http://www.alglib.net/translator/re/${pkgname}-${pkgver}.mpfr.zip)
12 md5sums=('8a881fde04995382aeb624e1d43b1c67')
19 gcc -I. -c *.cpp || return 1
20 ar rcs libmpalglib.a *.o || return 1
24 gcc -I. -fPIC -c *.cpp || return 1
25 gcc -shared -Wl,-soname,libmpalglib.so.2 -o libmpalglib.so.${pkgver} *.o
29 install -d ${pkgdir}/usr/share/doc/alglib
30 install ../manual.mpfr.html ${pkgdir}/usr/share/doc/alglib
33 install -d ${pkgdir}/usr/include/libmpalglib
34 install *.h ${pkgdir}/usr/include/libmpalglib
37 install -d ${pkgdir}/usr/lib
38 install libmpalglib.a ${pkgdir}/usr/lib
39 install libmpalglib.so.${pkgver} ${pkgdir}/usr/lib
40 ln -s libmpalglib.so.${pkgver} ${pkgdir}/usr/lib/libmpalglib.so.2
41 ln -s libmpalglib.so.${pkgver} ${pkgdir}/usr/lib/libmpalglib.so