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>
|
2014-01-18 18:26:45 +00:00
|
|
|
# - patch to fix building on armv5 and armv6
|
2014-04-06 02:27:51 +00:00
|
|
|
# - drop openmpi support
|
2013-08-15 12:37:29 +00:00
|
|
|
|
2014-02-10 04:08:27 +00:00
|
|
|
noautobuild=1
|
|
|
|
|
2012-06-06 20:28:35 +00:00
|
|
|
pkgname=valgrind
|
2013-11-10 16:09:54 +00:00
|
|
|
pkgver=3.9.0
|
2014-09-05 00:37:43 +00:00
|
|
|
pkgrel=5
|
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/'
|
2014-02-10 04:08:27 +00:00
|
|
|
depends=('glibc>=2.19' 'glibc<2.20' 'perl')
|
2012-06-06 20:28:35 +00:00
|
|
|
makedepends=('gdb')
|
2014-04-06 02:27:51 +00:00
|
|
|
options=('staticlibs' '!emptydirs')
|
|
|
|
source=(http://valgrind.org/downloads/$pkgname-$pkgver.tar.bz2
|
2014-02-10 04:08:27 +00:00
|
|
|
alarm.patch
|
|
|
|
valgrind-3.9.0-glibc-2.19.patch)
|
2014-04-06 02:27:51 +00:00
|
|
|
sha1sums=('9415e28933de9d6687f993c4bb797e6bd49583f1'
|
2014-09-05 00:37:43 +00:00
|
|
|
'3669a2f6e8c34ad95d05ecc92fe7b2d6661edc76'
|
|
|
|
'4653e994d2660490c51a97cc70e45a506e80bfab')
|
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
|
|
|
|
patch -p1 -i "$srcdir"/valgrind-3.9.0-glibc-2.19.patch
|
2012-07-31 22:45:10 +00:00
|
|
|
[ "${CARCH}" = "arm" -o "${CARCH}" = "armv6h" ] && patch -Np1 -i ${srcdir}/alarm.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
|
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
|
|
|
}
|