1 #Contributor: twa022 <twa022 at gmail dot com>
3 pkgname="zeitgeist-datasources-bzr"
4 pkgdesc="Zeitgeist data sources"
8 url="https://launchpad.net/zeitgeist-datasources"
10 depends=('libzeitgeist' 'firefox>=4.0')
11 makedepends=('bzr' 'xulrunner')
13 _bzrtrunk="http://bazaar.launchpad.net/~zeitgeist-dataproviders/zeitgeist-datasources/trunk"
14 _bzrmod="zeitgeist-datasources"
19 msg "Connecting to the server..."
21 if [ ! -d ./{_bzrmod} ]; then
22 bzr --no-plugins branch ${_bzrtrunk} ${_bzrmod} -q -r ${pkgver}
24 cd ${_bzrmod} && bzr --no-plugins pull ${_bzrtrunk} -r ${pkgver}
27 msg "bzr checkout done or server timeout"
29 msg "Removing old build directory..."
30 rm -fr $srcdir/$_bzrmod-build
31 msg "Creating build directory..."
32 cp -r $srcdir/$_bzrmod $srcdir/$_bzrmod-build
33 cd "$srcdir/$_bzrmod-build"
38 msg "Starting make..."
40 ./autogen.sh --prefix=/usr
42 make DESTDIR=$pkgdir install
46 cd "$srcdir/$_bzrmod-build"
48 make DESTDIR="$pkgdir/" install