summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f2b985d3f7944d50630f0834829b6ec995b400a0 (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=likwid-git
pkgver=r2735
pkgrel=1
pkgdesc="Lightweight performance tools"
url="https://github.com/rrze-likwid/likwid"
arch=('x86_64' 'i686')
source=('git+https://github.com/RRZE-HPC/likwid.git')
license=('GPLv3')
depends=('lua' 'hwloc')
makedepends=('gcc' 'make' 'perl')
optdepends=('perl: for likwid-mpirun and likwid-perfscope'
            'gnuplot: for likwid-perfscope'
            'openmpi: for likwid-mpirun'
            'cuda: for cuda interface' )
conflicts=('likwid' 'likwid-svn')
provides=(likwid)
sha256sums=('SKIP')

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

build() {
  cd ${srcdir}/likwid
	sed -i "14s:/usr/local:/usr:; 46s:/man:/share/man:;" config.mk
	sed -i "s:/sbin:/bin:" config.mk
  sed -i "s:/sbin:/bin:" Makefile
  make
}

package() {
  cd ${srcdir}/likwid
  make PREFIX="${pkgdir}/usr" install

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