updated on Thu Jan 19 16:10:29 UTC 2012
[aur-mirror.git] / ompp / PKGBUILD
blobe357bf8f140d262158577752a9ee6f7935ac53ed
1 # Contributor: lynix <lynix47@googlemail.com>
2 # Maintainer: lynix <lynix47@googlemail.com>
4 pkgname=ompp
5 pkgver=0.7.1
6 pkgrel=1
7 pkgdesc="The OpenMP Profiler ompP"
8 arch=('i686' 'x86_64')
9 url='http://www.cs.utk.edu/~karl/ompp.html'
10 license=('GPLv2')
11 depends=('gcc')
12 makedepends=('make')
13 source=("http://www.cs.utk.edu/~karl/research/ompp/$pkgname-$pkgver.tgz")
14 md5sums=('571eedcbab7e48d04f1875806cfcac4c')
16 build() {
17   cd "$srcdir/$pkgname-$pkgver"
18   mkdir "$pkgdir/usr"
19   make INSTDIR=/usr OMPCC=gcc OMPFLAG=-fopenmp DOCDIR=/usr/share/doc
22 package() {
23   cd "$srcdir/$pkgname-$pkgver"
24   mkdir -p -m 755 $pkgdir/usr/{lib,bin,include,test}
25   cp opari/tool/opari $pkgdir/usr/bin
26   cp lib/libompp*.a $pkgdir/usr/lib
27   cp include/opari_omp.h $pkgdir/usr/include
28   cp include/pomp_lib.h $pkgdir/usr/include
29   cp kinst/kinst-ompp* $pkgdir/usr/bin
30   cp -r test/* $pkgdir/usr/test
31   chmod 755 $pkgdir/usr/bin/opari
32   chmod 755 $pkgdir/usr/bin/kinst-ompp*
33   chmod 644 $pkgdir/usr/lib/libompp*.a
34   chmod 644 $pkgdir/usr/include/pomp_lib.h
35   chmod 644 $pkgdir/usr/include/opari_omp.h
38 # vim:set ts=2 sw=2 et: