updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lib32-google-breakpad-svn / PKGBUILD
blob34968f1fbde767c18ae431c707f6377745de2296
1 # Contributor: Geoffrey Teale <tealeg@googlemail.com>
2 pkgname=lib32-google-breakpad-svn
3 pkgver=820
4 pkgrel=1
5 pkgdesc="An open-source multi-platform crash reporting system"
6 arch=('x86_64')
7 url="http://code.google.com/p/google-breakpad/"
8 license=('BSD')
9 depends=('lib32-curl')
10 makedepends=('subversion' 'gcc-multilib')
12 _svntrunk=http://google-breakpad.googlecode.com/svn/trunk
13 _svnmod=google-breakpad-read-only
15 build() {
16   cd "$srcdir"
18   if [ -d $_svnmod/.svn ]; then
19     (cd $_svnmod && svn up -r $pkgver)
20   else
21     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
22   fi
24   msg "SVN checkout done or server timeout"
25   msg "Starting make..."
27   rm -rf "$srcdir/$_svnmod-build"
28   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
29   cd "$srcdir/$_svnmod-build"
30   
31   #
32   # BUILD
33   #
34   autoreconf -v --force --install || return 1
35   ./configure --enable-m32 --program-suffix=-32 \
36         --prefix=/usr --libdir=/usr/lib32 || return 1
37   make || return 1
38   make DESTDIR="$pkgdir/" install || return 1
39   # --docdir doesn't seem to affect this, I probably just don't
40   # understand autoconf...
41   mv "${pkgdir}/usr/share/doc/breakpad-0.1" "${pkgdir}/usr/share/doc/breakpad32-0.1"