summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 439b60ff0c39d5f048e155b449e7c3c756793c55 (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
# Maintainer: Julian Hornich <julianhornich@googlemail.com>

pkgname=kerncraft-git
pkgrel=1
pkgver=r803
pkgdesc="Loop Kernel Analysis and Performance Modeling Toolkit"
arch=('i686' 'x86_64')
url="https://github.com/RRZE-HPC/kerncraft"
license=('GPLv3')
# iaca does currently not build from AUR. You might want to install it by hand and uncomment it here
depends=('python'
         'python-yaml'
         'python-pycachesim-git'
         'python-sympy'
         'python-pylru'
         'python-numpy'
         'python-pycparser'
         'likwid' )
makedepends=('git')
optdepends=('intel-compiler-base' 'gcc' 'python2-matplotlib')
source=('git+https://github.com/RRZE-HPC/kerncraft.git')
sha256sums=('SKIP')
provides=('kerncraft')

pkgver() {
  cd ${srcdir}/kerncraft
  echo "r"$(git rev-list --count master)
}

package() {
  cd ${srcdir}/kerncraft

  # install package
  python setup.py install --root="${pkgdir}"

  # examples
  mkdir -p ${pkgdir}/usr/share/${pkgname}
  cp -a ${srcdir}/kerncraft/examples ${pkgdir}/usr/share/${pkgname}/
  chmod -R 655 ${pkgdir}/usr/share/${pkgname}

  # license
  install -Dm644 ${srcdir}/kerncraft/LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}