PKGBUILDs/extra/valgrind/PKGBUILD

41 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>
2015-10-27 03:46:58 +00:00
# - hold for toolchain update, only build for v7/v8
2013-08-15 12:37:29 +00:00
2015-10-27 03:46:58 +00:00
buildarch=12
2016-03-15 18:14:30 +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-07-13 12:41:14 +00:00
pkgrel=2
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/'
2017-06-20 04:58:33 +00:00
depends=('glibc=2.25' 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-06-20 04:58:33 +00:00
source=("https://ftp.gwdg.de/pub/linux/sources.redhat.com/$pkgname/$pkgname-$pkgver.tar.bz2")
md5sums=('817dd08f1e8a66336b9ff206400a5369')
sha512sums=('34e1013cd3815d30a459b86220e871bb0a6209cc9e87af968f347083693779f022e986f211bdf1a5184ad7370cde12ff2cfca8099967ff94732970bd04a97009')
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
}