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

pkgname=stempel-git
pkgrel=1
pkgver=r232
pkgdesc="Loop Kernel Analysis and Performance Modeling Toolkit"
arch=('i686' 'x86_64')
url="https://github.com/RRZE-HPC/stempel"
license=('GPLv3')
depends=('python'
         'kerncraft-git' )
makedepends=('git')
source=('git+https://github.com/RRZE-HPC/stempel.git')
sha256sums=('SKIP')
provides=('stempel' 'stempel-analysis')

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

package() {
  cd ${srcdir}/stempel

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

  # rename analysis binary to avoid clashes
  mv ${pkgdir}/usr/bin/analysis ${pkgdir}/usr/bin/stempel-analysis

  # copy example headers and machine files
  mkdir -p ${pkgdir}/usr/share/${pkgname}
  cp -a ${srcdir}/stempel/stempel/headers ${pkgdir}/usr/share/${pkgname}/
  cp -a ${srcdir}/stempel/stempel/examples/machine-files ${pkgdir}/usr/share/${pkgname}/
  cp -a /usr/share/kerncraft-git/examples/machine-files ${pkgdir}/usr/share/${pkgname}/
  chmod -R 655 ${pkgdir}/usr/share/${pkgname}

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