PKGBUILDs/extra/valgrind/PKGBUILD

45 lines
1.1 KiB
Bash
Raw Normal View History

2014-04-06 02:27:51 +00:00
# $Id$
2012-06-06 20:28:35 +00:00
# Maintainer: Dan McGee <dan@archlinux.org>
# Maintainer: Allan McRae <allan@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - hold for toolchain update, only build for v7
2013-08-15 12:37:29 +00:00
buildarch=4
2015-02-09 04:12:45 +00:00
noautobuild=1
2014-02-10 04:08:27 +00:00
2012-06-06 20:28:35 +00:00
pkgname=valgrind
2014-11-26 22:59:47 +00:00
pkgver=3.10.1
2015-08-12 12:01:36 +00:00
pkgrel=3
2014-04-06 02:27:51 +00:00
pkgdesc='A tool to help find memory-management problems in programs'
arch=(i686 x86_64)
license=(GPL)
url='http://valgrind.org/'
2015-08-12 12:01:36 +00:00
depends=('glibc>=2.22' 'glibc<2.23' 'perl')
makedepends=('gdb' 'openmpi')
optdepends=('openmpi: MPI support')
2015-02-09 04:12:45 +00:00
options=('!emptydirs')
2014-04-06 02:27:51 +00:00
source=(http://valgrind.org/downloads/$pkgname-$pkgver.tar.bz2
2015-08-12 12:01:36 +00:00
valgrind-glibc.patch
valgrind-kernel-version.patch)
2014-11-26 22:59:47 +00:00
sha1sums=('15518427de842547ffa84eff8b2b67f3b16581a8'
2015-08-12 12:01:36 +00:00
'1fa127ef24630ad5f4901ea0e37ea2acb12d3d17'
'08b71e1ebc3e3906d0ff273db0aba2177a857c47')
2012-06-06 20:28:35 +00:00
2014-02-10 04:08:27 +00:00
prepare() {
2014-04-06 02:27:51 +00:00
cd $pkgname-$pkgver
2015-08-12 12:01:36 +00:00
patch -p1 -i "$srcdir"/valgrind-glibc.patch
patch -p1 -i "$srcdir"/valgrind-kernel-version.patch
2014-02-10 04:08:27 +00:00
}
build() {
2014-04-06 02:27:51 +00:00
cd $pkgname-$pkgver
./configure --prefix=/usr --mandir=/usr/share/man --with-mpicc=mpicc
2012-06-06 20:28:35 +00:00
make
}
package() {
2014-04-06 02:27:51 +00:00
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
2012-06-06 20:28:35 +00:00
}