summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 62c75620aaef8e6facbe586a1a0a409f30b30ccc (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
49
50
51
52
53
54
55
56
57
# Maintainer: eolianoe <eolianoe [at] gmail [DoT] com>

pkgname=perfsuite
pkgver=1.1.4
pkgrel=2
pkgdesc="Collection of tools, utilities, and libraries for software performance analysis"
arch=('i686' 'x86_64')
url='http://perfsuite.ncsa.illinois.edu/'
license=('custom')
depends=('binutils'
         'tdom' 'papi' 'tk'
         'java-environment' 'openmpi')
source=("${url}/download/${pkgname}-${pkgver}.tar.gz")
sha256sums=('fce97cff12e725814ddc1b1ac488e8085c4548d352d9ea8de269ed20820aaf07')

prepare(){
  cd "${srcdir}"

  # Out of source build
  rm -rf build
  mkdir -p build
}

build() {
  cd "${srcdir}/build"

  _binutils_ver=$(pacman -Qi binutils | grep Version | cut -d: -f2 | cut -d- -f1)

  ../${pkgname}-${pkgver}/configure \
    --prefix=/usr \
    --with-libbfd=bfd-"${_binutils_ver## }" \
    --enable-java \
    --with-mpi \
    --with-papi=/usr \
    --with-tdom=/usr

  make
}

#check(){
#  cd "${srcdir}/build"
#
#  make check
#}

package() {
  cd "${srcdir}/build"
  make -j1 install DESTDIR="${pkgdir}"

  cd "${srcdir}/${pkgname}-${pkgver}"
  install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"

  # Fix owner of the javadoc files
  chown -R root:root "${pkgdir}/usr/share/${pkgname}/doc/javadoc"
}

# vim:set ts=2 sw=2 et: