summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6861f43f1e64f7d557bab11f4d55e807dbd2146a (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
45
46
47
48
# Maintainer: Harenome Ranaivoarivony-Razanajato <ranaivoarivony-razanajato@hareno.me>

pkgname=aftermath-git
pkgver=r624.17ed7ce
pkgrel=1
pkgdesc="Afetermath: Trace-based performance analysis for OpenMP and OpenStream"
arch=('x86_64')
url="https://aftermath-tracing.com/"
license=('GPL2' 'LGPL2.1' 'FDL1.3')
depends=("libglade")
makedepends=("python2-numpy")
provides=("aftermath")
source=(
    ${pkgname}::git://git.drebesium.org/aftermath.git#branch=staging
    python2.patch
)
md5sums=(
    'SKIP'
    '2a77fafa1220f68da5e879a737677264'
)

prepare() {
  cd "${srcdir}/${pkgname}"
  git apply "${srcdir}/python2.patch"
}

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

build() {
  cd "${srcdir}/${pkgname}"
  # We run this twice because of an error with automake.
  autoreconf -fi || autoreconf -fi
  ./configure --prefix=/usr
  make
}

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