PKGBUILDs/extra/valgrind/PKGBUILD

60 lines
1.6 KiB
Bash
Raw Normal View History

2012-06-06 20:28:35 +00:00
# $Id: PKGBUILD 145920 2012-01-04 01:26:04Z allan $
# Maintainer: Dan McGee <dan@archlinux.org>
# Maintainer: Allan McRae <allan@archlinux.org>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - patch to fix building on armv5
2013-08-15 12:37:29 +00:00
noautobuild=1
2012-06-06 20:28:35 +00:00
pkgname=valgrind
2012-09-20 16:48:43 +00:00
pkgver=3.8.1
2013-09-15 15:34:32 +00:00
pkgrel=4
2012-06-06 20:28:35 +00:00
pkgdesc="A tool to help find memory-management problems in programs"
arch=('i686' 'x86_64')
license=('GPL')
url="http://valgrind.org/"
2013-08-15 12:37:29 +00:00
depends=('glibc>=2.18' 'glibc<2.19' 'perl')
2012-06-06 20:28:35 +00:00
makedepends=('gdb')
options=('!emptydirs')
source=(http://valgrind.org/downloads/${pkgname}-${pkgver}.tar.bz2
2013-08-15 12:37:29 +00:00
valgrind-3.8.1-glibc-2.18.patch
valgrind-3.8.1-ptrace-build-fix.patch
2013-09-15 15:34:32 +00:00
valgrind-3.8.1-xaddb.patch
2012-06-06 20:28:35 +00:00
alarm.patch)
2012-09-20 16:48:43 +00:00
md5sums=('288758010b271119a0ffc0183f1d6e38'
2013-08-15 12:37:29 +00:00
'f3f911e6f5b0ab9d176d40b47d6cae24'
'9d429e62255621a0c190a8180d8ab1a4'
2013-09-15 15:34:32 +00:00
'aad7751a3e4ee899093dcfa9f70a449b'
2012-08-16 05:35:50 +00:00
'aba5261d8ef25ab9bbad44631172da02')
2012-06-06 20:28:35 +00:00
2013-08-15 12:37:29 +00:00
prepare() {
2012-06-06 20:28:35 +00:00
cd ${srcdir}/${pkgname}-${pkgver}
2012-12-30 02:54:08 +00:00
2013-08-15 12:37:29 +00:00
patch -p1 -i $srcdir/valgrind-3.8.1-glibc-2.18.patch
# based on svn commits 13471 & 13482
patch -p0 -i $srcdir/valgrind-3.8.1-ptrace-build-fix.patch
2013-09-15 15:34:32 +00:00
# https://bugs.kde.org/show_bug.cgi?id=307106
patch -p0 -i $srcdir/valgrind-3.8.1-xaddb.patch
2012-06-06 20:28:35 +00:00
2012-07-31 22:45:10 +00:00
[ "${CARCH}" = "arm" -o "${CARCH}" = "armv6h" ] && patch -Np1 -i ${srcdir}/alarm.patch
2012-06-06 20:28:35 +00:00
2013-08-15 12:37:29 +00:00
./autogen.sh
}
build() {
if [[ ${CARCH} = "x86_64" ]]; then
2012-06-06 20:28:35 +00:00
./configure --prefix=/usr --mandir=/usr/share/man --enable-only64bit
else
./configure --prefix=/usr --mandir=/usr/share/man
fi
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
}