void-packages/srcpkgs/valgrind/template

31 lines
957 B
Bash

# Template file for 'valgrind'
pkgname=valgrind
version=3.10.1
revision=2
only_for_archs="i686 x86_64 armv7l"
build_style=gnu-configure
configure_args="--enable-tls --with-mpicc=/dev/null"
hostmakedepends="perl pkg-config"
makedepends="libgomp-devel"
depends="perl virtual?glibc>=2.21<2.22 virtual?glibc-dbg>=2.21<2.22"
short_desc="Tool for finding memory management bugs in programs"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://valgrind.org/"
license="GPL-2"
distfiles="http://www.valgrind.org/downloads/${pkgname}-${version}.tar.bz2"
checksum=fa253dc26ddb661b6269df58144eff607ea3f76a9bcfe574b0c7726e1dfcb997
if [ "$XBPS_TARGET_MACHINE" = "armv7l" ]; then
configure_args+=" ac_cv_host=armv7l-unknown-linux-gnueabihf"
fi
valgrind-devel_package() {
depends="valgrind>=${version}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/valgrind/*.a"
vmove usr/share/doc
}
}