summaryrefslogtreecommitdiff
path: root/extra/valgrind/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-04-07 03:51:15 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-04-07 03:51:15 +0000
commitb32e5e13c7dbf2d3acdaf49e85ddbc424207c14c (patch)
treead5380dc46956136c4343912508c80aadbf40bed /extra/valgrind/PKGBUILD
parent38eab99b0f820f0d7720c7bc4c1dab4a7d5eaeab (diff)
Mon Apr 7 03:43:56 UTC 2014
Diffstat (limited to 'extra/valgrind/PKGBUILD')
-rw-r--r--extra/valgrind/PKGBUILD39
1 files changed, 17 insertions, 22 deletions
diff --git a/extra/valgrind/PKGBUILD b/extra/valgrind/PKGBUILD
index 59ac68fa4..d0a7801ee 100644
--- a/extra/valgrind/PKGBUILD
+++ b/extra/valgrind/PKGBUILD
@@ -1,40 +1,35 @@
-# $Id: PKGBUILD 205617 2014-02-10 03:08:14Z allan $
+# $Id: PKGBUILD 209848 2014-04-06 01:05:40Z anatolik $
# Maintainer: Dan McGee <dan@archlinux.org>
# Maintainer: Allan McRae <allan@archlinux.org>
pkgname=valgrind
pkgver=3.9.0
-pkgrel=2
-pkgdesc="A tool to help find memory-management problems in programs"
-arch=('i686' 'x86_64')
-license=('GPL')
-url="http://valgrind.org/"
+pkgrel=4
+pkgdesc='A tool to help find memory-management problems in programs'
+arch=(i686 x86_64)
+license=(GPL)
+url='http://valgrind.org/'
depends=('glibc>=2.19' 'glibc<2.20' 'perl')
-makedepends=('gdb')
+makedepends=('gdb' 'openmpi')
+optdepends=('openmpi: MPI support')
options=('staticlibs' '!emptydirs')
-source=(http://valgrind.org/downloads/${pkgname}-${pkgver}.tar.bz2
+source=(http://valgrind.org/downloads/$pkgname-$pkgver.tar.bz2
valgrind-3.9.0-glibc-2.19.patch)
-md5sums=('0947de8112f946b9ce64764af7be6df2'
- '21020338ad5a93e6f9694946183e8835')
+sha1sums=('9415e28933de9d6687f993c4bb797e6bd49583f1'
+ '4653e994d2660490c51a97cc70e45a506e80bfab')
prepare() {
- cd ${srcdir}/${pkgname}-${pkgver}
- patch -p1 -i $srcdir/valgrind-3.9.0-glibc-2.19.patch
+ cd $pkgname-$pkgver
+ patch -p1 -i "$srcdir"/valgrind-3.9.0-glibc-2.19.patch
}
build() {
- cd ${srcdir}/${pkgname}-${pkgver}
-
- if [[ ${CARCH} = "x86_64" ]]; then
- ./configure --prefix=/usr --mandir=/usr/share/man --enable-only64bit
- else
- ./configure --prefix=/usr --mandir=/usr/share/man
- fi
-
+ cd $pkgname-$pkgver
+ ./configure --prefix=/usr --mandir=/usr/share/man --with-mpicc=mpicc
make
}
package() {
- cd ${srcdir}/${pkgname}-${pkgver}
- make DESTDIR=${pkgdir} install
+ cd $pkgname-$pkgver
+ make DESTDIR="$pkgdir" install
}