mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
45 lines
1.1 KiB
Bash
45 lines
1.1 KiB
Bash
# $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
|
|
|
|
noautobuild=1
|
|
|
|
pkgname=valgrind
|
|
pkgver=3.9.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.18' 'glibc<2.19' 'perl')
|
|
makedepends=('gdb')
|
|
options=('!emptydirs')
|
|
source=(http://valgrind.org/downloads/${pkgname}-${pkgver}.tar.bz2
|
|
alarm.patch)
|
|
md5sums=('0947de8112f946b9ce64764af7be6df2'
|
|
'aba5261d8ef25ab9bbad44631172da02')
|
|
|
|
prepare() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
|
|
[ "${CARCH}" = "arm" -o "${CARCH}" = "armv6h" ] && patch -Np1 -i ${srcdir}/alarm.patch
|
|
|
|
./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
if [[ ${CARCH} = "x86_64" ]]; then
|
|
./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
|
|
}
|