updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / spooles / PKGBUILD
blobf20aa880a4c14a8ee2e1f37af4ae8e15f09c1829
1 # Contributor: Alberto Penaforte <apenafor@gmail.com>
3 pkgname=spooles
4 pkgver=2.2
5 pkgrel=3
6 pkgdesc="SParse Object Oriented Linear Equations Solver"
7 arch=('i686' 'x86_64')
8 url="http://netlib.sandia.gov/linalg/spooles"
9 license=('GPL')
10 depends=()
11 source=(http://netlib.sandia.gov/linalg/spooles/${pkgname}.${pkgver}.tgz
12         Make.inc)
13 md5sums=('5789ca60d1ae565a4eaef6d03ca837af'
14          '23029d3d181afa0b26499a059c8045ea')
16 build() {
17   cd ${srcdir}
18   cp -f ../Make.inc .
19   make -j 3 lib || return 1
20   mkdir -p ${pkgdir}/usr/lib
21   mkdir -p ${pkgdir}/usr/include/spooles
22   cp spooles.a ${pkgdir}/usr/lib/libspooles.a
23   cp *.h ${pkgdir}/usr/include/spooles
24   for l in `ls`; do
25     if [ -d $l -a $l != 'documentation' ]
26     then
27       mkdir ${pkgdir}/usr/include/spooles/$l
28       [[ -f $l/$l.h ]] && cp $l/*.h ${pkgdir}/usr/include/spooles/$l
29     fi
30   done
32   # Fix permissions
33   cd ${pkgdir}/usr/include/spooles
34   chmod -R oug+r *
35   cd ${pkgdir}/usr/lib
36   chmod oug+r *