PKGBUILDs/extra/valgrind/PKGBUILD

50 lines
1.3 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>
2014-01-18 18:26:45 +00:00
# - patch to fix building on armv5 and armv6
2013-08-15 12:37:29 +00:00
2014-02-10 04:08:27 +00:00
noautobuild=1
2012-06-06 20:28:35 +00:00
pkgname=valgrind
pkgver=3.9.0
2014-02-10 04:08:27 +00:00
pkgrel=2
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/"
2014-02-10 04:08:27 +00:00
depends=('glibc>=2.19' 'glibc<2.20' 'perl')
2012-06-06 20:28:35 +00:00
makedepends=('gdb')
options=('!emptydirs')
source=(http://valgrind.org/downloads/${pkgname}-${pkgver}.tar.bz2
2014-02-10 04:08:27 +00:00
alarm.patch
valgrind-3.9.0-glibc-2.19.patch)
md5sums=('0947de8112f946b9ce64764af7be6df2'
2014-02-10 04:08:27 +00:00
'65adc9cf0035ff8598f9997754527d64'
'21020338ad5a93e6f9694946183e8835')
2012-06-06 20:28:35 +00:00
2014-02-10 04:08:27 +00:00
prepare() {
2012-06-06 20:28:35 +00:00
cd ${srcdir}/${pkgname}-${pkgver}
2012-12-30 02:54:08 +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
2014-02-10 04:08:27 +00:00
patch -p1 -i $srcdir/valgrind-3.9.0-glibc-2.19.patch
}
build() {
cd ${srcdir}/${pkgname}-${pkgver}
2013-08-15 12:37:29 +00:00
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
}