1 # Contributor: Dave Reisner <d@falconindy.com>
6 pkgdesc="A tool to help find memory-management problems in programs"
8 url="http://valgrind.org/"
10 depends=('glibc' 'perl')
13 conflicts=('valgrind')
14 source=(glibc-patch-version.patch)
15 md5sums=('b657f0ebdde3d9aefc9fd16f9e653702')
17 _svntrunk="svn://svn.valgrind.org/valgrind/trunk"
24 if [[ -d $_svnmod/.svn ]]; then
27 svn co $_svntrunk $_svnmod
30 msg "SVN checkout done or server timeout"
31 msg "Starting make..."
33 rm -rf "$srcdir/$_svnmod-build"
34 cp -r "$srcdir/$_svnmod" "$srcdir/${_svnmod}-build"
35 cd "$srcdir/${_svnmod}-build"
39 # make sure our CFLAGS are respected
40 sed -i -e 's:^CFLAGS="-Wno-long-long":CFLAGS="$CFLAGS -Wno-long-long":' configure.in
42 patch -Np1 < "$srcdir"/glibc-patch-version.patch
44 if [[ "$CARCH" = x86_64 ]]; then
45 ./configure --prefix=/usr --mandir=/usr/share/man --enable-only64bit
47 ./configure --prefix=/usr --mandir=/usr/share/man
54 cd "$srcdir/$_svnmod-build"
55 make DESTDIR="$pkgdir" install
58 # vim:set ts=2 sw=2 et: