PKGBUILDs/extra/valgrind/PKGBUILD

50 lines
1.5 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>
2015-10-27 03:46:58 +00:00
# - hold for toolchain update, only build for v7/v8
2017-10-27 13:03:57 +00:00
# - patch from Fedora for AArch64
2013-08-15 12:37:29 +00:00
2015-10-27 03:46:58 +00:00
buildarch=12
2017-12-07 13:50:50 +00:00
noautobuild=1
2014-02-10 04:08:27 +00:00
2012-06-06 20:28:35 +00:00
pkgname=valgrind
2017-06-20 04:58:33 +00:00
pkgver=3.13.0
2017-12-07 13:50:50 +00:00
pkgrel=4
2014-04-06 02:27:51 +00:00
pkgdesc='A tool to help find memory-management problems in programs'
2017-12-07 13:50:50 +00:00
arch=(x86_64)
2014-04-06 02:27:51 +00:00
license=(GPL)
url='http://valgrind.org/'
2017-09-09 16:47:24 +00:00
depends=('glibc=2.26' perl)
2015-10-01 23:42:01 +00:00
makedepends=(gdb openmpi)
optdepends=('openmpi: MPI support')
2015-10-01 23:42:01 +00:00
options=(!emptydirs)
2017-10-27 13:03:57 +00:00
source=("https://ftp.gwdg.de/pub/linux/sources.redhat.com/$pkgname/$pkgname-$pkgver.tar.bz2"
'valgrind-3.13.0-arm64-hwcap.patch')
md5sums=('817dd08f1e8a66336b9ff206400a5369'
'b7c24e58fa058578c9bf6fef4ccdd47d')
sha512sums=('34e1013cd3815d30a459b86220e871bb0a6209cc9e87af968f347083693779f022e986f211bdf1a5184ad7370cde12ff2cfca8099967ff94732970bd04a97009'
'5af853399c6abdf8016fd1c2be854b3952b7d7e9ca16c870f84eed72e606e639d5f64de32e60105899f5201b53156380ae460111e05209e843301492742c9bfd')
prepare() {
cd $pkgname-$pkgver
patch -p1 -i ../valgrind-3.13.0-arm64-hwcap.patch
}
2014-02-10 04:08:27 +00:00
build() {
2017-03-11 03:43:42 +00:00
# valgrind does not like stack protector flags
CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
CFLAGS=${CFLAGS/-fstack-protector-strong/}
CXXFLAGS=${CXXFLAGS/-fstack-protector-strong/}
2015-10-02 00:26:51 +00:00
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
}