summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 74dde3a5d8802c8a130443c8c0012fc8b40e7923 (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
# Maintainer: Denis Demidov <dennis.demidov@gmail.com>

pkgname=amgcl-git
pkgver=20150609
pkgrel=2
pkgdesc='C++ library for solving large sparse linear systems with algebraic multigrid method'
arch=('i686' 'x86_64')
url='http://github.com/ddemidov/amgcl'
license=('MIT')
depends=('boost-libs')
optdepeneds=('vexcl-git': 'vexcl backend'
             'hpx-git': 'HPX backend'
             'openmpi: distributed memory solver')
provides=('amgcl')
makedepends=('git' 'cmake' 'boost')
source=()

_gitroot='git://github.com/ddemidov/amgcl.git'
_gitname='amgcl'

package() {
  msg "Connecting to GIT server..."
  rm -rf $_gitname
  git clone --depth=1 $_gitroot
  msg "GIT checkout done or server timeout"

  cd $_gitname
  install -d "$pkgdir/usr/include/amgcl"
  find amgcl -type f -exec install -Dm644 '{}' "$pkgdir/usr/include/amgcl/" ';' || return 1
  install -Dm644 LICENSE.md "$pkgdir/usr/share/licenses/$_gitname/LICENSE.md" || return 1
  install -Dm644 README.md "$pkgdir/usr/share/doc/$_gitname/README.md" || return 1
}