mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# $Id$
|
|
# 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/v8
|
|
|
|
buildarch=12
|
|
#noautobuild=1
|
|
|
|
pkgname=valgrind
|
|
pkgver=3.13.0
|
|
pkgrel=1
|
|
pkgdesc='A tool to help find memory-management problems in programs'
|
|
arch=(i686 x86_64)
|
|
license=(GPL)
|
|
url='http://valgrind.org/'
|
|
depends=('glibc=2.25' perl)
|
|
makedepends=(gdb openmpi)
|
|
optdepends=('openmpi: MPI support')
|
|
options=(!emptydirs)
|
|
source=("https://ftp.gwdg.de/pub/linux/sources.redhat.com/$pkgname/$pkgname-$pkgver.tar.bz2")
|
|
md5sums=('817dd08f1e8a66336b9ff206400a5369')
|
|
sha512sums=('34e1013cd3815d30a459b86220e871bb0a6209cc9e87af968f347083693779f022e986f211bdf1a5184ad7370cde12ff2cfca8099967ff94732970bd04a97009')
|
|
|
|
build() {
|
|
# valgrind does not like stack protector flags
|
|
CPPFLAGS=${CPPFLAGS/-D_FORTIFY_SOURCE=2/}
|
|
CFLAGS=${CFLAGS/-fstack-protector-strong/}
|
|
CXXFLAGS=${CXXFLAGS/-fstack-protector-strong/}
|
|
|
|
cd $pkgname-$pkgver
|
|
./configure --prefix=/usr --mandir=/usr/share/man --with-mpicc=mpicc
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
}
|