summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2640aa8fa6c90917df230f3604f48d82e14f6521 (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
42
43
44
# -*- sh -*-
# Maintainer: Carsten Burgard <carsten.burgard@gmail.com>
pkgname=boost-numeric-bindings-svn
pkgrel=1
pkgver=r86799
pkgdesc="Boost Bindings is a bindings library (not just) for Boost.Ublas. It offers an easy way of calling BLAS, LAPACK, UMFPACK, MUMPS and many other mature legacy numerical codes from within C++."
arch=("any")
url="http://mathema.tician.de/software/boost-numeric-bindings/"
license=('Boost Software License 1.0')
groups=()
depends=('boost')
makedepends=('subversion')
provides=()
conflicts=('boost-numeric-bindings-git')
replaces=()
backup=()
options=()

_svnname=numeric_bindings
_svntrunk=http://svn.boost.org/svn/boost/sandbox/$_svnname

source=($_svnname'::svn+'$_svntrunk)
md5sums=('SKIP')

pkgver() {
  cd "$_svnname"
  local ver="$(svnversion)"
  printf "r%s" "${ver//[[:alpha:]]}"
}

build() {
    cd "$srcdir/$_svnname"
}

package() {
    cd "$srcdir/$_svnname"
    tgt_dir=$pkgdir/usr/include
    for header in $(find boost -name '*.hpp' -o -name '*.h'); do
        mkdir -p $(dirname $tgt_dir/$header)
        cp $header $tgt_dir/$header
    done
}

# vim:set ts=2 sw=2 et: