summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 66282b50ecab40993ab8e965ef1df81a0f22290d (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
# Maintainer: Harenome Ranaivoarivony-Razanajato <ranaivoarivony-razanajato@hareno.me>

pkgname=aftermath-openmp-git
pkgver=r366.3416578
pkgrel=1
pkgdesc="Openmp tracing tool for Aftermath"
arch=(x86_64)
url="https://aftermath-tracing.com/"
license=('BSD')
depends=("aftermath" "papi" "llvm" "clang")
provides=("aftermath-openmp")
source=(
  ${pkgname}::git://git.drebesium.org/aftermath-openmp.git#branch=staging
)
md5sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname}"
  # The repository has no tag. There is no reference to a version number
  # in the source code.
  # We use the number of commits and the commit hash as a version number.
  printf "r%s.%s" \
      "$(git rev-list --count HEAD)" \
      "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${pkgname}"
  cmake -DCMAKE_INSTALL_PREFIX=/usr .
  make
}

package() {
  cd "${srcdir}/${pkgname}"
  make DESTDIR="${pkgdir}/" install
}